Package com.qiniu.util
Class UrlSafeBase64
- java.lang.Object
-
- com.qiniu.util.UrlSafeBase64
-
public final class UrlSafeBase64 extends java.lang.ObjectURL安全的Base64编码和解码
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]decode(java.lang.String data)解码数据static java.lang.StringencodeToString(byte[] data)编码数据static java.lang.StringencodeToString(java.lang.String data)编码字符串
-
-
-
Method Detail
-
encodeToString
public static java.lang.String encodeToString(java.lang.String data)
编码字符串- Parameters:
data- 待编码字符串- Returns:
- 结果字符串
-
encodeToString
public static java.lang.String encodeToString(byte[] data)
编码数据- Parameters:
data- 字节数组- Returns:
- 结果字符串
-
decode
public static byte[] decode(java.lang.String data)
解码数据- Parameters:
data- 编码过的字符串- Returns:
- 原始数据
-
-