Class JsrDecoder<T>

    • Field Detail

      • factory

        private jakarta.json.JsonReaderFactory factory
    • Constructor Detail

      • JsrDecoder

        public JsrDecoder()
    • Method Detail

      • 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