Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
Modifier and Type | Method and Description |
---|---|
T |
decode(java.nio.ByteBuffer bytes)
Decode the given bytes into an object of type T.
|
boolean |
willDecode(java.nio.ByteBuffer bytes)
Answer whether the given bytes can be decoded into an object of type T.
|
T decode(java.nio.ByteBuffer bytes) throws DecodeException
bytes
- the bytes to be decoded.DecodeException
- If the provided bytes cannot be decoded to type Tboolean willDecode(java.nio.ByteBuffer bytes)
bytes
- the bytes to be decoded.