类 Base64
java.lang.Object
com.sh.javax.util.Base64
A utility class to convert to and from base 64 encoding.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Stringstatic StringReturns the plaintext equivalent of a base 64-encoded string.static Stringstatic Stringstatic Stringencode(byte[] bytec) static StringReturns the base 64 encoded equivalent of a supplied string.static Stringstatic Stringencode2(byte[] bytec) static Stringstatic Stringstatic void
-
构造器详细资料
-
Base64
public Base64()
-
-
方法详细资料
-
encode2
-
encode2
-
encode2
-
encode
-
encode
-
encode
Returns the base 64 encoded equivalent of a supplied string.- 参数:
source- the string to encode- 返回:
- String
-
decode2
-
decode2
-
decode
-
decode
Returns the plaintext equivalent of a base 64-encoded string.- 参数:
source- a base 64 string (which must have a multiple of 4 characters)charset- String- 返回:
- String
-
main
-