public class Base64Kit extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String value)
解码
|
static String |
decodeToStr(String value)
解码
|
static String |
decodeToStr(String value,
String charsetName)
解码
|
static String |
encode(byte[] value)
编码
|
static String |
encode(String value)
编码
|
static String |
encode(String value,
String charsetName)
编码
|
public static final Charset UTF_8
public static String encode(byte[] value)
value
- byte数组public static String encode(String value, String charsetName)
value
- 字符串charsetName
- charSetpublic static byte[] decode(String value)
value
- 字符串public static String decodeToStr(String value)
value
- 字符串Copyright © 2018. All rights reserved.