java.lang.Object
org.eclipse.jetty.websocket.jakarta.common.encoders.ByteArrayEncoder
- All Implemented Interfaces:
jakarta.websocket.Encoder
, jakarta.websocket.Encoder.Binary<byte[]>
public class ByteArrayEncoder
extends Object
implements jakarta.websocket.Encoder.Binary<byte[]>
-
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>
-
Constructor Summary
Constructors
-
Method Summary
void
void
init(jakarta.websocket.EndpointConfig config)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ByteArrayEncoder
public ByteArrayEncoder()
-
Method Details
-
destroy
public void destroy()
- Specified by:
destroy
in interface jakarta.websocket.Encoder
-
encode
public ByteBuffer encode(byte[] object)
throws jakarta.websocket.EncodeException
- Specified by:
encode
in interface jakarta.websocket.Encoder.Binary<byte[]>
- Throws:
jakarta.websocket.EncodeException
-
init
public void init(jakarta.websocket.EndpointConfig config)
- Specified by:
init
in interface jakarta.websocket.Encoder