public class Base64Util extends Object
| 构造器和说明 |
|---|
Base64Util() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decode(byte[] bytes) |
static String |
decode(String str,
String charset) |
static byte[] |
decodeToByte(String base64Str) |
static String |
decodeUTF8(String str) |
static byte[] |
encode(byte[] bytes) |
static String |
encode(String str,
String charset) |
static String |
encodeToString(byte[] bytes) |
static String |
encodeUTF8(String str) |
public static String encode(String str, String charset) throws RuntimeException
RuntimeExceptionpublic static String decode(String str, String charset) throws RuntimeException
RuntimeExceptionpublic static String encodeToString(byte[] bytes) throws RuntimeException
RuntimeExceptionpublic static byte[] decodeToByte(String base64Str) throws RuntimeException
RuntimeExceptionpublic static byte[] encode(byte[] bytes)
throws RuntimeException
RuntimeExceptionpublic static byte[] decode(byte[] bytes)
throws RuntimeException
RuntimeExceptionCopyright © 2016. All Rights Reserved.