Class JsrDecoder<T>
- java.lang.Object
-
- org.apache.johnzon.websocket.internal.jsr.JsrDecoder<T>
-
- All Implemented Interfaces:
javax.websocket.Decoder
,javax.websocket.Decoder.TextStream<T>
- Direct Known Subclasses:
JsrArrayDecoder
,JsrObjectDecoder
,JsrStructureDecoder
public abstract class JsrDecoder<T> extends java.lang.Object implements javax.websocket.Decoder.TextStream<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.websocket.Decoder
javax.websocket.Decoder.Binary<T extends java.lang.Object>, javax.websocket.Decoder.BinaryStream<T extends java.lang.Object>, javax.websocket.Decoder.Text<T extends java.lang.Object>, javax.websocket.Decoder.TextStream<T extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description private javax.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(java.io.Reader reader)
void
destroy()
protected abstract T
doRead(javax.json.JsonReader jsonReader)
void
init(javax.websocket.EndpointConfig endpointConfig)
-
-
-
Method Detail
-
doRead
protected abstract T doRead(javax.json.JsonReader jsonReader)
-
init
public void init(javax.websocket.EndpointConfig endpointConfig)
- Specified by:
init
in interfacejavax.websocket.Decoder
-
decode
public T decode(java.io.Reader reader) throws javax.websocket.DecodeException, java.io.IOException
- Specified by:
decode
in interfacejavax.websocket.Decoder.TextStream<T>
- Throws:
javax.websocket.DecodeException
java.io.IOException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.websocket.Decoder
-
-