public class Base64 extends Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String in)
Decode a base64 encoded string to a byte array.
|
static String |
decodeAsString(String in)
Decode a base64 encoded string to a string.
|
static String |
encode(byte[] in)
Encode a byte array and return the encoded string.
|
static String |
encode(Byte[] in)
Encode a Byte array and return the encoded string.
|
static String |
encode(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(String in)
Encode a String and return the encoded byte array.
|
public static byte[] decode(String in)
in
- A string representing a base64 encoding.public static String decodeAsString(String in)
in
- The string representation of the base64 encoding.public static String encode(String in)
in
- A string to encode.public static String encode(Byte[] in)
in
- A string to encode.public static String encode(byte[] in)
in
- A string to encode.public static byte[] encodeAsBytes(String in)
in
- A string to encode.public static byte[] encodeAsBytes(byte[] inArray)
inArray
- A string to encode.Copyright © 2015. All rights reserved.