public class Base64Utils
extends java.lang.Object
Constructor and Description |
---|
Base64Utils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
fromBase64(java.lang.String data)
Decode a base64 string into a byte array.
|
static long |
longFromBase64(java.lang.String value)
Decode a base64 string into a long value.
|
static java.lang.String |
toBase64(byte[] data)
Converts a byte array into a base 64 encoded string.
|
static java.lang.String |
toBase64(long value)
Return a string containing a base-64 encoded version of the given long
value.
|
public static byte[] fromBase64(java.lang.String data)
data
- the encoded data.fromBase64(String)
public static long longFromBase64(java.lang.String value)
public static java.lang.String toBase64(byte[] data)
data
- a byte array, which may be null or emptypublic static java.lang.String toBase64(long value)