Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
Modifier and Type | Method and Description |
---|---|
T |
decode(ByteBuffer bytes)
Decode the given bytes into an object of type T.
|
boolean |
willDecode(ByteBuffer bytes)
Answer whether the given bytes can be decoded into an object of type T.
|
T decode(ByteBuffer bytes) throws DecodeException
bytes
- the bytes to be decoded.DecodeException
boolean willDecode(ByteBuffer bytes)
bytes
- the bytes to be decoded.Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.