public class ByteArrayDecoder extends AbstractDecoder implements javax.websocket.Decoder.Binary<byte[]>
Modifier and Type | Field and Description |
---|---|
static ByteArrayDecoder |
INSTANCE |
Constructor and Description |
---|
ByteArrayDecoder() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(java.nio.ByteBuffer bytes) |
boolean |
willDecode(java.nio.ByteBuffer bytes) |
destroy, init
public static final ByteArrayDecoder INSTANCE
public byte[] decode(java.nio.ByteBuffer bytes) throws javax.websocket.DecodeException
decode
in interface javax.websocket.Decoder.Binary<byte[]>
javax.websocket.DecodeException
public boolean willDecode(java.nio.ByteBuffer bytes)
willDecode
in interface javax.websocket.Decoder.Binary<byte[]>