类 Base64
java.lang.Object
com.alibaba.druid.util.Base64
Static methods for translating Base64 encoded strings to byte arrays and vice-versa.
- 从以下版本开始:
- 1.4
- 版本:
- %I%, %G%
- 作者:
- Josh Bloch
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static byte[]Translates the specified "alternate representation" Base64 string into a byte array.static byte[]Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array.static StringbyteArrayToAltBase64(byte[] a) Translates the specified byte array into an "alternate representation" Base64 string.static StringbyteArrayToBase64(byte[] a) Translates the specified byte array into a Base64 string as per Preferences.put(byte[]).
-
构造器详细资料
-
Base64
public Base64()
-
-
方法详细资料
-
byteArrayToBase64
Translates the specified byte array into a Base64 string as per Preferences.put(byte[]). -
byteArrayToAltBase64
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. -
base64ToByteArray
Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array. -
altBase64ToByteArray
Translates the specified "alternate representation" Base64 string into a byte array.
-