Class ByteArrayEncoder
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.encoders.ByteArrayEncoder
-
- All Implemented Interfaces:
Encoder,Encoder.Binary<byte[]>
public class ByteArrayEncoder extends Object implements Encoder.Binary<byte[]>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.websocket.Encoder
Encoder.Binary<T extends Object>, Encoder.BinaryStream<T extends Object>, Encoder.Text<T extends Object>, Encoder.TextStream<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description ByteArrayEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()ByteBufferencode(byte[] object)voidinit(EndpointConfig config)
-
-
-
Method Detail
-
encode
public ByteBuffer encode(byte[] object) throws EncodeException
- Specified by:
encodein interfaceEncoder.Binary<byte[]>- Throws:
EncodeException
-
init
public void init(EndpointConfig config)
-
-