|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Encoder
The Encoder interface defines how developers can provide a way to convert their custom objects into web socket messages. The Encoder interface contains subinterfaces that allow encoding algorithms to encode custom objects to: text, binary data, character stream and write to an output stream. The websocket implementation creates a new instance of the encoder per endpoint instance per connection. This means that each encoder instance has at most one calling thread at a time.
Nested Class Summary | |
---|---|
static interface |
Encoder.Binary<T>
This interface defines how to provide a way to convert a custom object into a binary message. |
static interface |
Encoder.BinaryStream<T>
This interface may be implemented by encoding algorithms that want to write the encoded object to a binary stream. |
static interface |
Encoder.Text<T>
This interface defines how to provide a way to convert a custom object into a text message. |
static interface |
Encoder.TextStream<T>
This interface may be implemented by encoding algorithms that want to write the encoded object to a character stream. |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |