| Modifier and Type | Field and Description |
|---|---|
| protected final byte[] | |
| protected final byte[] | |
| protected byte |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of bytes produced.Implements org. |
| public int | Returns: the number of bytes produced.Implements org. |
| private int | |
| public int | |
| public int | Returns: the number of bytes produced.Implements org. |
| public int | getEncodedLength(int
the input length of the data. inputLength)Implements org. |
| public int | getMaxDecodedLength(int
the input length of the encoded data. inputLength)Implements org. |
| private boolean | |
| protected void | |
| private int | |
| private int |
| decodingTable | back to summary |
|---|---|
| protected final byte[] decodingTable | |
| encodingTable | back to summary |
|---|---|
| protected final byte[] encodingTable | |
| padding | back to summary |
|---|---|
| protected byte padding | |
| Base64Encoder | back to summary |
|---|---|
| public Base64Encoder() | |
| decode | back to summary |
|---|---|
| public int decode(byte[] data, int off, int length, OutputStream out) throws IOException Implements org. decode the base 64 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 64 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) 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 64 output stream.
| |
| 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) | |
| nextI | back to summary |
|---|---|
| private int nextI(String data, int i, int finish) | |