public class Base64Utils extends Object
限定符和类型 | 方法和说明 |
---|---|
static String |
decode(String value)
解码
|
static String |
decode(String value,
String charsetName)
解码
|
static byte[] |
decodeBase64(String value)
解码
|
static String |
encode(byte[] value)
编码
|
static String |
encode(String value)
编码
|
static String |
encode(String value,
String charsetName)
编码
|
public static String encode(byte[] value)
value
- byte数组public static String encode(String value, String charsetName)
value
- 字符串charsetName
- charSetpublic static byte[] decodeBase64(String value)
value
- 字符串Copyright © 2017. All rights reserved.