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