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