public abstract class BinaryEncoder
extends java.lang.Object
| Constructor | Description |
|---|---|
BinaryEncoder() |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
encode(byte[] input) |
Encodes the given bytes.
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer input) |
Encodes the bytes in the given buffer.
|
abstract java.lang.String |
encodeToString(byte[] input) |
Encodes the given bytes into a string.
|
java.lang.String |
encodeToString(java.math.BigInteger input) |
Encodes the given
BigInteger into a string. |
boolean |
supportsStreaming() |
Checks whether this encoder supports streaming.
|
java.io.OutputStream |
wrap(java.io.OutputStream destination) |
Returns an
OutputStream encoding the bytes written to it into the given OutputStream. |
public byte[] encode(byte[] input)
java.lang.IllegalArgumentException - if input are nullpublic java.nio.ByteBuffer encode(java.nio.ByteBuffer input)
java.lang.IllegalArgumentException - if input is nullpublic java.lang.String encodeToString(java.math.BigInteger input)
BigInteger into a string.java.lang.IllegalArgumentException - if input is nullpublic abstract java.lang.String encodeToString(byte[] input)
java.lang.IllegalArgumentException - if input are nullpublic boolean supportsStreaming()
public java.io.OutputStream wrap(java.io.OutputStream destination)
OutputStream encoding the bytes written to it into the given OutputStream.java.lang.UnsupportedOperationException - if this encoder does not support streaming