public abstract class BinaryDecoder extends Object
| Constructor and Description |
|---|
BinaryDecoder() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(byte[] input)
Decodes the given bytes.
|
ByteBuffer |
decode(ByteBuffer input)
Decodes the bytes in the given buffer.
|
abstract byte[] |
decode(String input)
Decodes the given string.
|
BigInteger |
decodeBigInteger(String input)
Decodes the given string.
|
boolean |
supportsStreaming()
Checks whether this decoder supports streaming.
|
InputStream |
wrap(InputStream stream)
Returns an
InputStream decoding bytes from the given InputStream. |
public byte[] decode(byte[] input)
BinaryCodingException - if input are invalid for this encoding schemeIllegalArgumentException - if bytes are nullpublic ByteBuffer decode(ByteBuffer input)
BinaryCodingException - if the bytes in input are invalid for this encoding schemeIllegalArgumentException - if buffer is nullpublic abstract byte[] decode(String input)
BinaryCodingException - if the bytes represented by string are invalid for this encoding schemeIllegalArgumentException - if input is nullpublic BigInteger decodeBigInteger(String input)
BinaryCodingException - if the bytes represented by string are invalid for this encoding schemeIllegalArgumentException - if input is nullpublic boolean supportsStreaming()
public InputStream wrap(InputStream stream)
InputStream decoding bytes from the given InputStream.UnsupportedOperationException - if this decoder does not support streaming