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 voiddestroy()voidencode(Object object, Writer writer)voidinit(jakarta.websocket.EndpointConfig endpointConfig)
-
-
-
Field Detail
-
mapper
private Mapper mapper
-
-
Method Detail
-
init
public void init(jakarta.websocket.EndpointConfig endpointConfig)
- Specified by:
initin interfacejakarta.websocket.Encoder
-
destroy
public void destroy()
- Specified by:
destroyin interfacejakarta.websocket.Encoder
-
encode
public void encode(Object object, Writer writer) throws jakarta.websocket.EncodeException, IOException
- Specified by:
encodein interfacejakarta.websocket.Encoder.TextStream<Object>- Throws:
jakarta.websocket.EncodeExceptionIOException
-
-