Class JohnzonTextEncoder

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

public class JohnzonTextEncoder extends Object implements jakarta.websocket.Encoder.TextStream<Object>
  • Nested Class Summary

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

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

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.johnzon.mapper.Mapper
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    encode(Object object, Writer writer)
     
    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

    • mapper

      private org.apache.johnzon.mapper.Mapper mapper
  • Constructor Details

    • JohnzonTextEncoder

      public JohnzonTextEncoder()
  • Method Details

    • 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(Object object, Writer writer) throws jakarta.websocket.EncodeException, IOException
      Specified by:
      encode in interface jakarta.websocket.Encoder.TextStream<Object>
      Throws:
      jakarta.websocket.EncodeException
      IOException