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, init
public ByteBuffer encode(byte[] object) throws javax.websocket.EncodeException
encode
in interface javax.websocket.Encoder.Binary<byte[]>
javax.websocket.EncodeException
public 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.DecodeException
Copyright © 2012–2017 Oracle Corporation. All rights reserved.