Interface Encoder.Binary<T>
- Type Parameters:
T- The type of object accepted by the encoder
- All Superinterfaces:
Encoder
- Enclosing interface:
Encoder
An encoder that encodes an object of type T into a binary WebSocket message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Encoder
Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T> -
Method Summary
Modifier and TypeMethodDescriptionEncodes the given object into a ByteBuffer.
-
Method Details
-
encode
Encodes the given object into a ByteBuffer.- Parameters:
object- The object to encode- Returns:
- The encoded binary data
- Throws:
EncodeException- If the object cannot be encoded
-