public class Base64Utils
extends java.lang.Object
Base64
. If the version is older than
Froyo, then Robert Harder's public domain Base64 class is used.Base64
Constructor and Description |
---|
Base64Utils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] input)
Base64 decodes the input.
|
static byte[] |
decode(java.lang.String str)
Base64 decodes the input.
|
static byte[] |
encode(byte[] input)
Base64 encodes the input.
|
static java.lang.String |
encodeToString(byte[] input)
Base64 encodes the input.
|
public static byte[] encode(byte[] input)
Base64.encode(byte[], int)
.
Otherwise Base64.encodeBytesToBytes(byte[])
is used.input
- the byte array to encodepublic static java.lang.String encodeToString(byte[] input)
Base64.encodeToString(byte[], int)
.
Otherwise Base64.encodeBytes(byte[])
is used.input
- the byte array to encodepublic static byte[] decode(byte[] input)
Base64.decode(byte[], int)
.
Otherwise Base64.decode(byte[])
is used.input
- the byte array to decodepublic static byte[] decode(java.lang.String str)
Base64.decode(String, int)
.
Otherwise Base64.decode(String)
is used.str
- the String the decode