public class EncodingUtils extends Object
| 构造器和说明 |
|---|
EncodingUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
base64(byte[] bytes)
Calculate standard base64.
|
static byte[] |
decodeBase64(String base64)
Decode standard base64.
|
static byte[] |
decodeHex(String str)
Convert hex string back to bytes.
|
static byte[] |
decodeMimeSafeBase64(String base64)
Decode mime base64.
|
static byte[] |
decodeUrlSafeBase64(String base64)
Decode url/filename safe base64.
|
static String |
hex(byte[] bytes)
Convert bytes to hex string.
|
static String |
mimeBase64(byte[] bytes)
Calculate mime base64.
|
static String |
urlSafeBase64(byte[] bytes)
Calculate url/filename safe base64.
|
public static String hex(byte[] bytes)
public static byte[] decodeHex(String str)
public static String base64(byte[] bytes)
public static byte[] decodeBase64(String base64)
public static String urlSafeBase64(byte[] bytes)
public static byte[] decodeUrlSafeBase64(String base64)
public static String mimeBase64(byte[] bytes)
public static byte[] decodeMimeSafeBase64(String base64)
Copyright © 2015. All rights reserved.