T - The type of the custom object that this Encoder can encoder to a ByteBuffer.public static interface Encoder.Binary<T> extends Encoder
Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T>| Modifier and Type | Method and Description | 
|---|---|
| java.nio.ByteBuffer | encode(T object)Encode the given object into a byte array. | 
java.nio.ByteBuffer encode(T object) throws EncodeException
object - the object being encoded.EncodeException - The provided object could not be encoded to a byte bufferCopyright © 2012–2020 Oracle Corporation. All rights reserved.