Module org.apache.johnzon.websocket
Class JohnzonTextDecoder
- java.lang.Object
-
- org.apache.johnzon.websocket.mapper.JohnzonTextDecoder
-
- All Implemented Interfaces:
jakarta.websocket.Decoder
,jakarta.websocket.Decoder.TextStream<java.lang.Object>
public class JohnzonTextDecoder extends java.lang.Object implements jakarta.websocket.Decoder.TextStream<java.lang.Object>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.websocket.Decoder
jakarta.websocket.Decoder.Binary<T extends java.lang.Object>, jakarta.websocket.Decoder.BinaryStream<T extends java.lang.Object>, jakarta.websocket.Decoder.Text<T extends java.lang.Object>, jakarta.websocket.Decoder.TextStream<T extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description JohnzonTextDecoder()
JohnzonTextDecoder(java.lang.reflect.Type type)
JohnzonTextDecoder(org.apache.johnzon.mapper.Mapper mapper, java.lang.reflect.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
decode(java.io.Reader stream)
void
destroy()
void
init(jakarta.websocket.EndpointConfig endpointConfig)
-
-
-
Method Detail
-
decode
public java.lang.Object decode(java.io.Reader stream) throws jakarta.websocket.DecodeException
- Specified by:
decode
in interfacejakarta.websocket.Decoder.TextStream<java.lang.Object>
- Throws:
jakarta.websocket.DecodeException
-
init
public void init(jakarta.websocket.EndpointConfig endpointConfig)
- Specified by:
init
in interfacejakarta.websocket.Decoder
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejakarta.websocket.Decoder
-
-