public class Base64 extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static byte[] |
altBase64ToInt
This array is the analogue of base64ToInt, but for the nonstandard variant that avoids the use of uppercase
alphabetic characters.
|
private static 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 char[] |
intToAltBase64
This array is a lookup table that translates 6-bit positive integer index values into their
"Alternate Base64 Alphabet" equivalents.
|
private static 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() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
altBase64ToByteArray(String s)
Translates the specified "alternate representation" Base64 string into a byte array.
|
static byte[] |
base64ToByteArray(String s)
Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array.
|
private static byte[] |
base64ToByteArray(String s,
boolean alternate) |
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.
|
static String |
byteArrayToAltBase64(byte[] a)
Translates the specified byte array into an "alternate representation" Base64 string.
|
static String |
byteArrayToBase64(byte[] a)
Translates the specified byte array into a Base64 string as per Preferences.put(byte[]).
|
private static String |
byteArrayToBase64(byte[] a,
boolean alternate) |
private static final char[] intToBase64
private static final char[] intToAltBase64
private static final byte[] base64ToInt
private static final byte[] altBase64ToInt
public static String byteArrayToBase64(byte[] a)
public static String byteArrayToAltBase64(byte[] a)
private static String byteArrayToBase64(byte[] a, boolean alternate)
public static byte[] base64ToByteArray(String s)
public static byte[] altBase64ToByteArray(String s)
private static byte[] base64ToByteArray(String s, boolean alternate)
private static int base64toInt(char c,
byte[] alphaToInt)
Copyright © 2013–2019 Alibaba Group. All rights reserved.