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<Object>
public class JsonbTextDecoder extends TypeAwareDecoder implements jakarta.websocket.Decoder.TextStream<Object>
-
-
Constructor Summary
Constructors Constructor Description JsonbTextDecoder()
JsonbTextDecoder(jakarta.json.bind.Jsonb jsonb, Type type)
JsonbTextDecoder(Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
decode(Reader stream)
void
destroy()
void
init(jakarta.websocket.EndpointConfig endpointConfig)
-
-
-
Field Detail
-
mapper
protected jakarta.json.bind.Jsonb mapper
-
type
protected Type type
-
-
Method Detail
-
decode
public Object decode(Reader stream) throws jakarta.websocket.DecodeException
- Specified by:
decode
in interfacejakarta.websocket.Decoder.TextStream<Object>
- Throws:
jakarta.websocket.DecodeException
-
init
public void init(jakarta.websocket.EndpointConfig endpointConfig)
- Specified by:
init
in interfacejakarta.websocket.Decoder
- Overrides:
init
in classTypeAwareDecoder
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejakarta.websocket.Decoder
-
-