Class JohnzonTextDecoder

java.lang.Object
org.apache.johnzon.websocket.mapper.JohnzonTextDecoder
All Implemented Interfaces:
jakarta.websocket.Decoder, jakarta.websocket.Decoder.TextStream<Object>

public class JohnzonTextDecoder extends Object implements jakarta.websocket.Decoder.TextStream<Object>
  • Field Details

    • mapper

      protected org.apache.johnzon.mapper.Mapper mapper
    • type

      protected Type type
  • Constructor Details

    • JohnzonTextDecoder

      public JohnzonTextDecoder()
    • JohnzonTextDecoder

      public JohnzonTextDecoder(Type type)
    • JohnzonTextDecoder

      public JohnzonTextDecoder(org.apache.johnzon.mapper.Mapper mapper, Type type)
  • Method Details

    • decode

      public Object decode(Reader stream) throws jakarta.websocket.DecodeException
      Specified by:
      decode in interface jakarta.websocket.Decoder.TextStream<Object>
      Throws:
      jakarta.websocket.DecodeException
    • init

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

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