Does not insert or interpret whitespace as described in RFC 1521. If you require this you must pre/post process your data.
Note that in a web context the usual case is to not want linebreaks or other white space in the encoded output.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static byte[] | |
| pack-priv static final char[] | |
| pack-priv static final char |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | |
| public static byte[] | Returns: byte array containing the decoded form of the input.char array to decode. b)Fast Base 64 decode as described in RFC 1421. |
| public static String | |
| public static String | |
| public static char[] | Returns: char array containing the encoded form of the input.byte array to encode. b)Fast Base 64 encode as described in RFC 1421. |
| code2nibble | back to summary |
|---|---|
| pack-priv static byte[] code2nibble | |
| nibble2code | back to summary |
|---|---|
| pack-priv static final char[] nibble2code | |
| pad | back to summary |
|---|---|
| pack-priv static final char pad | |
| B64Code | back to summary |
|---|---|
| public B64Code() | |
| decode | back to summary |
|---|---|
| public static String decode(String s) Base 64 decode as described in RFC 1421. Does not attempt to cope with extra whitespace as described in RFC 1521. | |
| decode | back to summary |
|---|---|
| public static String decode(String s, String charEncoding) throws UnsupportedEncodingException Base 64 decode as described in RFC 1421. Does not attempt to cope with extra whitespace as described in RFC 1521. | |
| decode | back to summary |
|---|---|
| public static byte[] decode(char[] b) Fast Base 64 decode as described in RFC 1421. Does not attempt to cope with extra whitespace as described in RFC 1521. Avoids creating extra copies of the input/output. Note this code has been flattened for performance.
| |
| encode | back to summary |
|---|---|
| public static String encode(String s) Base 64 encode as described in RFC 1421. Does not insert whitespace as described in RFC 1521. | |
| encode | back to summary |
|---|---|
| public static String encode(String s, String charEncoding) throws UnsupportedEncodingException Base 64 encode as described in RFC 1421. Does not insert whitespace as described in RFC 1521. | |
| encode | back to summary |
|---|---|
| public static char[] encode(byte[] b) Fast Base 64 encode as described in RFC 1421. Does not insert whitespace as described in RFC 1521. Avoids creating extra copies of the input/output.
| |