public interface Encoder
Modifier and Type | Method and Description |
---|---|
int |
decode(byte[] data,
int off,
int length,
java.io.OutputStream out) |
int |
decode(java.lang.String data,
java.io.OutputStream out) |
int |
encode(byte[] data,
int off,
int length,
java.io.OutputStream out) |
int |
getEncodedLength(int inputLength)
Return the expected output length of the encoding.
|
int |
getMaxDecodedLength(int inputLength)
Return the maximum expected output length of a decoding.
|
int getEncodedLength(int inputLength)
inputLength
- the input length of the data.int getMaxDecodedLength(int inputLength)
inputLength
- the input length of the encoded data.int encode(byte[] data, int off, int length, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
int decode(byte[] data, int off, int length, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
int decode(java.lang.String data, java.io.OutputStream out) throws java.io.IOException
java.io.IOException