Class JsonbTextDecoder

  • All Implemented Interfaces:
    jakarta.websocket.Decoder, jakarta.websocket.Decoder.TextStream<java.lang.Object>

    public class JsonbTextDecoder
    extends TypeAwareDecoder
    implements jakarta.websocket.Decoder.TextStream<java.lang.Object>
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      protected jakarta.json.bind.Jsonb mapper  
      protected java.lang.reflect.Type type  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object decode​(java.io.Reader stream)  
      void destroy()  
      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 Detail

      • mapper

        protected jakarta.json.bind.Jsonb mapper
      • type

        protected java.lang.reflect.Type type
    • Constructor Detail

      • JsonbTextDecoder

        public JsonbTextDecoder()
      • JsonbTextDecoder

        public JsonbTextDecoder​(java.lang.reflect.Type type)
      • JsonbTextDecoder

        public JsonbTextDecoder​(jakarta.json.bind.Jsonb jsonb,
                                java.lang.reflect.Type type)
    • Method Detail

      • decode

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

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

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