public abstract class Base64Utils extends Object
| 构造器和说明 |
|---|
Base64Utils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decode(byte[] src)
Base64-decode the given byte array.
|
static byte[] |
decodeFromString(String src)
Base64-decode the given byte array from an UTF-8 String.
|
static byte[] |
decodeFromUrlSafeString(String src)
Base64-decode the given byte array from an UTF-8 String using the RFC
4868 "URL and Filename Safe Alphabet".
|
static byte[] |
decodeUrlSafe(byte[] src)
Base64-decode the given byte array using the RFC 4868
"URL and Filename Safe Alphabet".
|
static byte[] |
encode(byte[] src)
Base64-encode the given byte array.
|
static String |
encodeToString(byte[] src)
Base64-encode the given byte array to a String.
|
static String |
encodeToUrlSafeString(byte[] src)
Base64-encode the given byte array to a String using the RFC 4868
"URL and Filename Safe Alphabet".
|
static byte[] |
encodeUrlSafe(byte[] src)
Base64-encode the given byte array using the RFC 4868
"URL and Filename Safe Alphabet".
|
public static byte[] encode(byte[] src)
src - the original byte array (may be null)null if the input was
null)public static byte[] decode(byte[] src)
src - the encoded byte array (may be null)null if the input was
null)public static byte[] encodeUrlSafe(byte[] src)
src - the original byte array (may be null)null if the input was
null)public static byte[] decodeUrlSafe(byte[] src)
src - the encoded byte array (may be null)null if the input was
null)public static String encodeToString(byte[] src)
src - the original byte array (may be null)null if the
input was null)public static byte[] decodeFromString(String src)
src - the encoded UTF-8 String (may be null)null if the input was
null)public static String encodeToUrlSafeString(byte[] src)
src - the original byte array (may be null)null if the
input was null)public static byte[] decodeFromUrlSafeString(String src)
src - the encoded UTF-8 String (may be null)null if the input was
null)Copyright © 2016. All rights reserved.