Preferences
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | altBase64ToInt
This array is the analogue of base64ToInt, but for the nonstandard variant that avoids the use of uppercase alphabetic characters. |
| private static final byte[] | base64ToInt
This array is a lookup table that translates unicode characters drawn from the "Base64 Alphabet" (as specified in Table 1 of RFC 2045) into their 6-bit positive integer equivalents. |
| private static final char[] | intToAltBase64
This array is a lookup table that translates 6-bit positive integer index values into their "Alternate Base64 Alphabet" equivalents. |
| private static final char[] | intToBase64
This array is a lookup table that translates 6-bit positive integer index values into their "Base64 Alphabet" equivalents as specified in Table 1 of RFC 2045. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static byte[] | altBase64ToByteArray(String s)
Translates the specified "alternate representation" Base64 string into a byte array. |
| pack-priv static byte[] | base64ToByteArray(String s)
Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array. |
| private static byte[] | |
| private static int | base64toInt(char c, byte[] alphaToInt)
Translates the specified character, which is assumed to be in the "Base 64 Alphabet" into its equivalent 6-bit positive integer. |
| pack-priv static String | byteArrayToAltBase64(byte[] a)
Translates the specified byte array into an "alternate representation" Base64 string. |
| pack-priv static String | byteArrayToBase64(byte[] a)
Translates the specified byte array into a Base64 string as per Preferences.put(byte[]). |
| private static String | |
| public static void |
| altBase64ToInt | back to summary |
|---|---|
| private static final byte[] altBase64ToInt This array is the analogue of base64ToInt, but for the nonstandard variant that avoids the use of uppercase alphabetic characters. | |
| base64ToInt | back to summary |
|---|---|
| private static final byte[] base64ToInt This array is a lookup table that translates unicode characters drawn from the "Base64 Alphabet" (as specified in Table 1 of RFC 2045) into their 6-bit positive integer equivalents. Characters that are not in the Base64 alphabet but fall within the bounds of the array are translated to -1. | |
| intToAltBase64 | back to summary |
|---|---|
| private static final char[] intToAltBase64 This array is a lookup table that translates 6-bit positive integer index values into their "Alternate Base64 Alphabet" equivalents. This is NOT the real Base64 Alphabet as per in Table 1 of RFC 2045. This alternate alphabet does not use the capital letters. It is designed for use in environments where "case folding" occurs. | |
| intToBase64 | back to summary |
|---|---|
| private static final char[] intToBase64 This array is a lookup table that translates 6-bit positive integer index values into their "Base64 Alphabet" equivalents as specified in Table 1 of RFC 2045. | |
| Base64 | back to summary |
|---|---|
| pack-priv Base64() | |
| altBase64ToByteArray | back to summary |
|---|---|
| pack-priv static byte[] altBase64ToByteArray(String s) Translates the specified "alternate representation" Base64 string into a byte array.
| |
| base64ToByteArray | back to summary |
|---|---|
| pack-priv static byte[] base64ToByteArray(String s) Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array.
| |
| base64ToByteArray | back to summary |
|---|---|
| private static byte[] base64ToByteArray(String s, boolean alternate) | |
| base64toInt | back to summary |
|---|---|
| private static int base64toInt(char c, byte[] alphaToInt) Translates the specified character, which is assumed to be in the "Base 64 Alphabet" into its equivalent 6-bit positive integer.
| |
| byteArrayToAltBase64 | back to summary |
|---|---|
| pack-priv static String byteArrayToAltBase64(byte[] a) Translates the specified byte array into an "alternate representation" Base64 string. This non-standard variant uses an alphabet that does not contain the uppercase alphabetic characters, which makes it suitable for use in situations where case-folding occurs. | |
| byteArrayToBase64 | back to summary |
|---|---|
| pack-priv static String byteArrayToBase64(byte[] a) Translates the specified byte array into a Base64 string as per Preferences.put(byte[]). | |
| byteArrayToBase64 | back to summary |
|---|---|
| private static String byteArrayToBase64(byte[] a, boolean alternate) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |