Module org.apache.johnzon.websocket
Class JsonbTextDecoder
- java.lang.Object
-
- org.apache.johnzon.websocket.internal.TypeAwareDecoder
-
- org.apache.johnzon.websocket.jsonb.JsonbTextDecoder
-
- All Implemented Interfaces:
jakarta.websocket.Decoder,jakarta.websocket.Decoder.TextStream<java.lang.Object>
public class JsonbTextDecoder extends TypeAwareDecoder 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 JsonbTextDecoder()JsonbTextDecoder(jakarta.json.bind.Jsonb jsonb, java.lang.reflect.Type type)JsonbTextDecoder(java.lang.reflect.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectdecode(java.io.Reader stream)voiddestroy()voidinit(jakarta.websocket.EndpointConfig endpointConfig)
-
-
-
Method Detail
-
decode
public java.lang.Object decode(java.io.Reader stream) throws jakarta.websocket.DecodeException- Specified by:
decodein interfacejakarta.websocket.Decoder.TextStream<java.lang.Object>- Throws:
jakarta.websocket.DecodeException
-
init
public void init(jakarta.websocket.EndpointConfig endpointConfig)
- Specified by:
initin interfacejakarta.websocket.Decoder- Overrides:
initin classTypeAwareDecoder
-
destroy
public void destroy()
- Specified by:
destroyin interfacejakarta.websocket.Decoder
-
-