|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type of the custom object that this Encoder can encoder to a ByteBuffer.public static interface Encoder.Binary<T>
This interface defines how to provide a way to convert a custom object into a binary message.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.websocket.Encoder |
|---|
Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T> |
| Method Summary | |
|---|---|
ByteBuffer |
encode(T object)
Encode the given object into a byte array. |
| Method Detail |
|---|
ByteBuffer encode(T object)
throws EncodeException
object - the object being encoded.
EncodeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||