T
- The type of the object that is decodedpublic static interface Decoder.TextStream<T> extends Decoder
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
Modifier and Type | Method and Description |
---|---|
T |
decode(java.io.Reader reader)
Reads the websocket message from the implementation provided Reader and decodes it into an instance of the
supplied object type.
|
T decode(java.io.Reader reader) throws DecodeException, java.io.IOException
reader
- the reader from which to read the web socket message.DecodeException
- If the data from the provided reader cannot be decoded to type Tjava.io.IOException
- If an error occurs reading from the reader