Class JsrEncoder<T>

    • Field Detail

      • factory

        private jakarta.json.JsonWriterFactory factory
    • Constructor Detail

      • JsrEncoder

        public JsrEncoder()
    • Method Detail

      • doWrite

        protected abstract void doWrite​(jakarta.json.JsonWriter writer,
                                        T t)
      • init

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

        public void destroy()
        Specified by:
        destroy in interface jakarta.websocket.Encoder
      • encode

        public void encode​(T t,
                           Writer writer)
                    throws jakarta.websocket.EncodeException,
                           IOException
        Specified by:
        encode in interface jakarta.websocket.Encoder.TextStream<T>
        Throws:
        jakarta.websocket.EncodeException
        IOException