Interface Decoder.Text<T>
- Type Parameters:
T- The type of object produced by the decoder
- All Superinterfaces:
Decoder
- Enclosing interface:
Decoder
A decoder that decodes entire text WebSocket messages into an object of type T.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Decoder
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T> -
Method Summary
Modifier and TypeMethodDescriptionDecodes the text data into an object.booleanwillDecode(String s) Determines whether this decoder can decode the given text data.
-
Method Details
-
decode
Decodes the text data into an object.- Parameters:
s- The text data to decode- Returns:
- The decoded object
- Throws:
DecodeException- If the data cannot be decoded
-
willDecode
Determines whether this decoder can decode the given text data.- Parameters:
s- The text data to check- Returns:
trueif this decoder can decode the data
-