public interface Encoder
init(jakarta.websocket.EndpointConfig) and destroy() methods.| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | Encoder.Binary<T>This interface defines how to provide a way to convert a custom object into a binary message. | 
| static interface  | Encoder.BinaryStream<T>This interface may be implemented by encoding algorithms that want to write the encoded object to a binary
 stream. | 
| static interface  | Encoder.Text<T>This interface defines how to provide a way to convert a custom object into a text message. | 
| static interface  | Encoder.TextStream<T>This interface may be implemented by encoding algorithms that want to write the encoded object to a character
 stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| default void | destroy()This method is called when the encoder is about to be removed from service in order that any resources the
 encoder used may be closed gracefully. | 
| default void | init(EndpointConfig config)This method is called with the endpoint configuration object of the endpoint this encoder is intended for when it
 is about to be brought into service. | 
default void init(EndpointConfig config)
config - the endpoint configuration object when being brought into servicedefault void destroy()
Copyright © 2012–2020 Oracle Corporation. All rights reserved.