Class AbstractEncodedData<D>

    • Method Detail

      • getEncoding

        public Deque<Encoding<?>> getEncoding()
        Description copied from interface: EncodedData
        All encodings registered for this piece of EncodedData. May be empty. May contain only partial data: e.g. adding a ByteArrayEncoding to the list will request encoding by ByteArrayCodec, this method call will subsequently fill all fields of the requested Encoding to allow for decoding.
        Specified by:
        getEncoding in interface EncodedData<D>
        Returns:
        all associated Encoding instances
      • setEncoding

        public void setEncoding​(Deque<Encoding<?>> encoding)
        Description copied from interface: EncodedData
        Replace this encoding chain with a different one.
        Specified by:
        setEncoding in interface EncodedData<D>
        Parameters:
        encoding - the new encoding chain for this instance
      • hasNextDecodingStep

        public boolean hasNextDecodingStep()
        Description copied from interface: EncodedData
        Convenience method to state whether the List returned by EncodedData.getEncoding() is not empty.
        Specified by:
        hasNextDecodingStep in interface EncodedData<D>
        Returns:
        true if encoding steps are registered and need to be resolved to access decoded data