public class ByteArrayDecoder extends AbstractDecoder implements Decoder.Binary<byte[]>
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
Modifier and Type | Field and Description |
---|---|
static ByteArrayDecoder |
INSTANCE |
Constructor and Description |
---|
ByteArrayDecoder() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(ByteBuffer bytes) |
boolean |
willDecode(ByteBuffer bytes) |
destroy, init
public static final ByteArrayDecoder INSTANCE
public byte[] decode(ByteBuffer bytes) throws DecodeException
decode
in interface Decoder.Binary<byte[]>
DecodeException
public boolean willDecode(ByteBuffer bytes)
willDecode
in interface Decoder.Binary<byte[]>
Copyright © 1995-2016 Webtide. All Rights Reserved.