Class JohnzonTextEncoder
- java.lang.Object
-
- org.apache.johnzon.websocket.mapper.JohnzonTextEncoder
-
-
Constructor Summary
Constructors Constructor Description JohnzonTextEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
encode(Object object, Writer writer)
void
init(jakarta.websocket.EndpointConfig endpointConfig)
-
-
-
Field Detail
-
mapper
private Mapper mapper
-
-
Method Detail
-
init
public void init(jakarta.websocket.EndpointConfig endpointConfig)
- Specified by:
init
in interfacejakarta.websocket.Encoder
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejakarta.websocket.Encoder
-
encode
public void encode(Object object, Writer writer) throws jakarta.websocket.EncodeException, IOException
- Specified by:
encode
in interfacejakarta.websocket.Encoder.TextStream<Object>
- Throws:
jakarta.websocket.EncodeException
IOException
-
-