Value.Decoder

public interface Decoder

Interface of a Value decoder, able to transform a ByteBuffer into a Value.

Methods

decode

public Value decode(ByteBuffer buf)

Decode a Value that is encoded in a ByteBuffer.

Parameters:
  • buf – the ByteBuffer containing the encoded Value.
Returns:

the Value.

getEncodingFlag

public short getEncodingFlag()

Returns the flag of the Encoding that this Decoder supports. (@see Encoding#getFlag()).

Returns:the encoding flag.