Package javax.websocket
Interface Encoder.Text<T>
- Type Parameters:
T
- The type of the custom developer object that this Encoder can encode into a String.
- All Superinterfaces:
Encoder
- Enclosing interface:
- Encoder
This interface defines how to provide a way to convert a custom
object into a text 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
-
Method Details
-
encode
Encode the given object into a String.- Parameters:
object
- the object being encoded.- Returns:
- the encoded object as a string.
- Throws:
EncodeException
-