Class JsrDecoder<T>
- java.lang.Object
-
- org.apache.johnzon.websocket.internal.jsr.JsrDecoder<T>
-
- All Implemented Interfaces:
jakarta.websocket.Decoder
,jakarta.websocket.Decoder.TextStream<T>
- Direct Known Subclasses:
JsrArrayDecoder
,JsrObjectDecoder
,JsrStructureDecoder
public abstract class JsrDecoder<T> extends Object implements jakarta.websocket.Decoder.TextStream<T>
-
-
Field Summary
Fields Modifier and Type Field Description private jakarta.json.JsonReaderFactory
factory
-
Constructor Summary
Constructors Constructor Description JsrDecoder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
decode(Reader reader)
void
destroy()
protected abstract T
doRead(jakarta.json.JsonReader jsonReader)
void
init(jakarta.websocket.EndpointConfig endpointConfig)
-
-
-
Method Detail
-
doRead
protected abstract T doRead(jakarta.json.JsonReader jsonReader)
-
init
public void init(jakarta.websocket.EndpointConfig endpointConfig)
- Specified by:
init
in interfacejakarta.websocket.Decoder
-
decode
public T decode(Reader reader) throws jakarta.websocket.DecodeException, IOException
- Specified by:
decode
in interfacejakarta.websocket.Decoder.TextStream<T>
- Throws:
jakarta.websocket.DecodeException
IOException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejakarta.websocket.Decoder
-
-