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