| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final Base64Coder. | |
| private static final String | |
| public static final Base64Coder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | |
| public static byte[] | Returns: An array containing the decoded data bytes.A Base64 String to be decoded. s, Base64Coder.Decodes a byte array from Base64 format. |
| public static byte[] | |
| public static byte[] | |
| public static byte[] | Returns: An array containing the decoded data bytes.A character array containing the Base64 encoded data. in)Decodes a byte array from Base64 format. |
| public static byte[] | |
| public static byte[] | Returns: An array containing the decoded data bytes.A character array containing the Base64 encoded data. in, int Offset of the first character in iOff, int in to be processed.Number of characters to process in iLen, byte[] in, starting at iOff.charMap to use inverseCharMap)Decodes a byte array from Base64 format. |
| public static byte[] | |
| public static byte[] | |
| public static byte[] | Returns: An array containing the decoded data bytes.A Base64 String to be decoded. s, byte[] inverseCharMap)Decodes a byte array from Base64 format and ignores line separators, tabs and blanks. |
| public static String | Returns: A String containing the decoded data.A Base64 String to be decoded. s)Decodes a string from Base64 format. |
| public static String | |
| public static char[] | Returns: A character array containing the Base64 encoded data.An array containing the data bytes to be encoded. in)Encodes a byte array into Base64 format. |
| public static char[] | |
| public static char[] | |
| public static char[] | Returns: A character array containing the Base64 encoded data.An array containing the data bytes to be encoded. in, int Number of bytes to process in iLen)in.Encodes a byte array into Base64 format. |
| public static char[] | |
| public static char[] | Returns: A character array containing the Base64 encoded data.An array containing the data bytes to be encoded. in, int Offset of the first byte in iOff, int in to be processed.Number of bytes to process in iLen, char[] in, starting at iOff.char map to use charMap)Encodes a byte array into Base64 format. |
| public static String | Returns: A String containing the Base64 encoded data, broken into lines.An array containing the data bytes to be encoded. in)Encodes a byte array into Base64 format and breaks the output into lines of 76 characters. |
| public static String | encodeLines(byte[] in, int iOff, int iLen, int lineLen, String lineSeparator, Base64Coder.
|
| public static String | Returns: A String containing the Base64 encoded data, broken into lines.An array containing the data bytes to be encoded. in, int Offset of the first byte in iOff, int in to be processed.Number of bytes to be processed in iLen, int in, starting at iOff.Line length for the output data. Should be a multiple of 4. lineLen, String The line separator to be used to separate the output lines. lineSeparator, char[] char map to use charMap)Encodes a byte array into Base64 format and breaks the output into lines. |
| public static String | Returns: A String containing the Base64 encoded data.A String to be encoded. s)Encodes a string into Base64 format. |
| public static String | Returns: A String containing the Base64 encoded data.A String to be encoded. s, boolean If true, this encodes the result with an alternate URL-safe set of characters. useUrlsafeEncoding)Encodes a string into Base64 format, optionally using URL-safe encoding instead of the "regular" Base64 encoding. |
| regularMap | back to summary |
|---|---|
| public static final Base64Coder. | |
| systemLineSeparator | back to summary |
|---|---|
| private static final String systemLineSeparator | |
| urlsafeMap | back to summary |
|---|---|
| public static final Base64Coder. | |
| Base64Coder | back to summary |
|---|---|
| private Base64Coder() | |
| decode | back to summary |
|---|---|
| public static byte[] decode(String s) Decodes a byte array from Base64 format. No blanks or line breaks are allowed within the Base64 encoded input data.
| |
| decode | back to summary |
|---|---|
| public static byte[] decode(String s, Base64Coder. Decodes a byte array from Base64 format. No blanks or line breaks are allowed within the Base64 encoded input data.
| |
| decode | back to summary |
|---|---|
| public static byte[] decode(char[] in, byte[] inverseCharMap) | |
| decode | back to summary |
|---|---|
| public static byte[] decode(char[] in, Base64Coder. | |
| decode | back to summary |
|---|---|
| public static byte[] decode(char[] in) Decodes a byte array from Base64 format. No blanks or line breaks are allowed within the Base64 encoded input data.
| |
| decode | back to summary |
|---|---|
| public static byte[] decode(char[] in, int iOff, int iLen, Base64Coder. | |
| decode | back to summary |
|---|---|
| public static byte[] decode(char[] in, int iOff, int iLen, byte[] inverseCharMap) Decodes a byte array from Base64 format. No blanks or line breaks are allowed within the Base64 encoded input data.
| |
| decodeLines | back to summary |
|---|---|
| public static byte[] decodeLines(String s) | |
| decodeLines | back to summary |
|---|---|
| public static byte[] decodeLines(String s, Base64Coder. | |
| decodeLines | back to summary |
|---|---|
| public static byte[] decodeLines(String s, byte[] inverseCharMap) Decodes a byte array from Base64 format and ignores line separators, tabs and blanks. CR, LF, Tab and Space characters are
ignored in the input data. This method is compatible with
| |
| decodeString | back to summary |
|---|---|
| public static String decodeString(String s) Decodes a string from Base64 format. No blanks or line breaks are allowed within the Base64 encoded input data.
| |
| decodeString | back to summary |
|---|---|
| public static String decodeString(String s, boolean useUrlSafeEncoding) | |
| encode | back to summary |
|---|---|
| public static char[] encode(byte[] in) Encodes a byte array into Base64 format. No blanks or line breaks are inserted in the output.
| |
| encode | back to summary |
|---|---|
| public static char[] encode(byte[] in, Base64Coder. | |
| encode | back to summary |
|---|---|
| public static char[] encode(byte[] in, char[] charMap) | |
| encode | back to summary |
|---|---|
| public static char[] encode(byte[] in, int iLen) Encodes a byte array into Base64 format. No blanks or line breaks are inserted in the output.
| |
| encode | back to summary |
|---|---|
| public static char[] encode(byte[] in, int iOff, int iLen, Base64Coder. | |
| encode | back to summary |
|---|---|
| public static char[] encode(byte[] in, int iOff, int iLen, char[] charMap) Encodes a byte array into Base64 format. No blanks or line breaks are inserted in the output.
| |
| encodeLines | back to summary |
|---|---|
| public static String encodeLines(byte[] in) Encodes a byte array into Base64 format and breaks the output into lines of 76 characters. This method is compatible with
| |
| encodeLines | back to summary |
|---|---|
| public static String encodeLines(byte[] in, int iOff, int iLen, int lineLen, String lineSeparator, Base64Coder. | |
| encodeLines | back to summary |
|---|---|
| public static String encodeLines(byte[] in, int iOff, int iLen, int lineLen, String lineSeparator, char[] charMap) Encodes a byte array into Base64 format and breaks the output into lines.
| |
| encodeString | back to summary |
|---|---|
| public static String encodeString(String s) Encodes a string into Base64 format. No blanks or line breaks are inserted. | |
| encodeString | back to summary |
|---|---|
| public static String encodeString(String s, boolean useUrlsafeEncoding) Encodes a string into Base64 format, optionally using URL-safe encoding instead of the "regular" Base64 encoding. No blanks or line breaks are inserted. | |
| Modifier and Type | Field and Description |
|---|---|
| protected final byte[] | |
| protected final char[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public char[] |
| decodingMap | back to summary |
|---|---|
| protected final byte[] decodingMap | |
| encodingMap | back to summary |
|---|---|
| protected final char[] encodingMap | |
| CharMap | back to summary |
|---|---|
| public CharMap(char char63, char char64) | |
| getDecodingMap | back to summary |
|---|---|
| public byte[] getDecodingMap() | |
| getEncodingMap | back to summary |
|---|---|
| public char[] getEncodingMap() | |