| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private final byte[] | |
| private static final byte | |
| private final byte[] | |
| private final byte |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Base32Encoder(byte[]
a 32 entry encoding table to do the mapping. encodingTable, byte the padding value to use. padding)Constructor allowing the setting of an alternative alphabet. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of bytes produced.Implements org. decode the base 32 encoded byte data writing it to the given output stream, whitespace characters will be ignored. |
| public int | Returns: the number of bytes produced.Implements org. decode the base 32 encoded String data writing it to the given output stream, whitespace characters will be ignored. |
| private int | decodeLastBlock(OutputStream out, char c1, char c2, char c3, char c4, char c5, char c6, char c7, char c8)
|
| public int | |
| public int | Returns: the number of bytes produced.Implements org. encode the input data producing a base 32 output stream. |
| private void | |
| public int | getEncodedLength(int
the input length of the data. inputLength)Implements org. Return the expected output length of the encoding. |
| public int | getMaxDecodedLength(int
the input length of the encoded data. inputLength)Implements org. Return the maximum expected output length of a decoding. |
| private boolean | |
| protected void | |
| private int |
| DEAULT_ENCODING_TABLE | back to summary |
|---|---|
| private static final byte[] DEAULT_ENCODING_TABLE | |
| decodingTable | back to summary |
|---|---|
| private final byte[] decodingTable | |
| DEFAULT_PADDING | back to summary |
|---|---|
| private static final byte DEFAULT_PADDING | |
| encodingTable | back to summary |
|---|---|
| private final byte[] encodingTable | |
| padding | back to summary |
|---|---|
| private final byte padding | |
| Base32Encoder | back to summary |
|---|---|
| public Base32Encoder() Base constructor for RFC 4648, Section 6. | |
| Base32Encoder | back to summary |
|---|---|
| public Base32Encoder(byte[] encodingTable, byte padding) Constructor allowing the setting of an alternative alphabet.
| |
| decode | back to summary |
|---|---|
| public int decode(byte[] data, int off, int length, OutputStream out) throws IOException Implements org. decode the base 32 encoded byte data writing it to the given output stream, whitespace characters will be ignored.
| |
| decode | back to summary |
|---|---|
| public int decode(String data, OutputStream out) throws IOException Implements org. decode the base 32 encoded String data writing it to the given output stream, whitespace characters will be ignored.
| |
| decodeLastBlock | back to summary |
|---|---|
| private int decodeLastBlock(OutputStream out, char c1, char c2, char c3, char c4, char c5, char c6, char c7, char c8) throws IOException | |
| encode | back to summary |
|---|---|
| public int encode(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws IOException | |
| encode | back to summary |
|---|---|
| public int encode(byte[] buf, int off, int len, OutputStream out) throws IOException Implements org. encode the input data producing a base 32 output stream.
| |
| encodeBlock | back to summary |
|---|---|
| private void encodeBlock(byte[] inBuf, int inPos, byte[] outBuf, int outPos) | |
| getEncodedLength | back to summary |
|---|---|
| public int getEncodedLength(int inputLength) Implements org. Doc from org. Return the expected output length of the encoding.
| |
| getMaxDecodedLength | back to summary |
|---|---|
| public int getMaxDecodedLength(int inputLength) Implements org. Doc from org. Return the maximum expected output length of a decoding. If padding is present the value returned will be greater than the decoded data length.
| |
| ignore | back to summary |
|---|---|
| private boolean ignore(char c) | |
| initialiseDecodingTable | back to summary |
|---|---|
| protected void initialiseDecodingTable() | |
| nextI | back to summary |
|---|---|
| private int nextI(byte[] data, int i, int finish) | |