T - The type of the object that is decodedpublic static interface Decoder.Binary<T> extends Decoder
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 © 2012–2019 Oracle Corporation. All rights reserved.