public class Base64Kit extends Object
Base64Kit class.
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decode(String value)
解码
|
static boolean |
decoder2File(String base64Code,
String name)
将base64字符解码保存文件
|
static boolean |
decoder2File(String base64Code,
String name,
String savePath)
将base64字符解码保存文件
|
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)
编码
|
static String |
encodeFile(String path)
将base64字符解码保存文件
|
static void |
main(String[] args)
main.
|
public static final Charset UTF_8
UTF_8public 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, String charsetName)
value - 字符串charsetName - 字符集public static String encodeFile(String path)
path - a String object.public static boolean decoder2File(String base64Code, String name, String savePath)
base64Code - basename - 名称savePath - a String object.Copyright © 2023. All rights reserved.