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>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface jakarta.websocket.Decoder

    jakarta.websocket.Decoder.Binary<T extends Object>, jakarta.websocket.Decoder.BinaryStream<T extends Object>, jakarta.websocket.Decoder.Text<T extends Object>, jakarta.websocket.Decoder.TextStream<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private jakarta.json.JsonReaderFactory
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(Reader reader)
     
    void
     
    protected abstract T
    doRead(jakarta.json.JsonReader jsonReader)
     
    void
    init(jakarta.websocket.EndpointConfig endpointConfig)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • factory

      private jakarta.json.JsonReaderFactory factory
  • Constructor Details

    • JsrDecoder

      public JsrDecoder()
  • Method Details

    • doRead

      protected abstract T doRead(jakarta.json.JsonReader jsonReader)
    • init

      public void init(jakarta.websocket.EndpointConfig endpointConfig)
      Specified by:
      init in interface jakarta.websocket.Decoder
    • decode

      public T decode(Reader reader) throws jakarta.websocket.DecodeException, IOException
      Specified by:
      decode in interface jakarta.websocket.Decoder.TextStream<T>
      Throws:
      jakarta.websocket.DecodeException
      IOException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.websocket.Decoder