Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
Modifier and Type | Method and Description |
---|---|
T |
decode(ByteBuffer bytes)
Decode the given bytes into an object of type T.
|
boolean |
willDecode(ByteBuffer bytes)
Answer whether the given bytes can be decoded into an object of type T.
|
T decode(ByteBuffer bytes) throws DecodeException
bytes
- the bytes to be decoded.DecodeException
- If the provided bytes cannot be decoded to type Tboolean willDecode(ByteBuffer bytes)
bytes
- the bytes to be decoded.Copyright © 2019 Eclipse Foundation
Use is subject to license terms.