public class Base64
extends java.lang.Object
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(java.lang.String in)
Decode a base64 encoded string to a byte array.
|
static java.lang.String |
decodeAsString(java.lang.String in)
Decode a base64 encoded string to a string.
|
static java.lang.String |
encode(byte[] in)
Encode a byte array and return the encoded string.
|
static java.lang.String |
encode(java.lang.Byte[] in)
Encode a Byte array and return the encoded string.
|
static java.lang.String |
encode(java.lang.String in)
Encode a String and return the encoded string.
|
static byte[] |
encodeAsBytes(byte[] inArray)
Encode a byte array and return the encoded byte array.
|
static byte[] |
encodeAsBytes(java.lang.String in)
Encode a String and return the encoded byte array.
|
public static byte[] decode(java.lang.String in)
in - A string representing a base64 encoding.public static java.lang.String decodeAsString(java.lang.String in)
in - The string representation of the base64 encoding.public static java.lang.String encode(java.lang.String in)
in - A string to encode.public static java.lang.String encode(java.lang.Byte[] in)
in - A string to encode.public static java.lang.String encode(byte[] in)
in - A string to encode.public static byte[] encodeAsBytes(java.lang.String in)
in - A string to encode.public static byte[] encodeAsBytes(byte[] inArray)
inArray - A string to encode.