public class NoOpByteArrayCoder extends CoderAdapter implements javax.websocket.Decoder.Binary<byte[]>, javax.websocket.Encoder.Binary<byte[]>
Encoder and Decoder implementation for byte array.| Constructor and Description |
|---|
NoOpByteArrayCoder() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(ByteBuffer bytes) |
ByteBuffer |
encode(byte[] object) |
boolean |
willDecode(ByteBuffer bytes) |
destroy, initpublic ByteBuffer encode(byte[] object) throws javax.websocket.EncodeException
encode in interface javax.websocket.Encoder.Binary<byte[]>javax.websocket.EncodeExceptionpublic boolean willDecode(ByteBuffer bytes)
willDecode in interface javax.websocket.Decoder.Binary<byte[]>public byte[] decode(ByteBuffer bytes) throws javax.websocket.DecodeException
decode in interface javax.websocket.Decoder.Binary<byte[]>javax.websocket.DecodeExceptionCopyright © 2012–2019 Oracle Corporation. All rights reserved.