public final class BASE64Helper extends Object
| Constructor and Description |
|---|
BASE64Helper() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] bytes)
Decodes a given byte array.
|
static byte[] |
decode(String b64String)
Decodes a Base64 encoded UTF-8
String into a byte[]. |
static byte[] |
encode(byte[] bytes)
Encodes a given byte array.
|
static String |
encodeToString(byte[] bytes)
Encodes byte[] to a string.
|
public static byte[] decode(byte[] bytes)
bytes - public static byte[] decode(String b64String) throws UnsupportedEncodingException
String into a byte[].b64String - StringUnsupportedEncodingExceptionpublic static byte[] encode(byte[] bytes)
bytes - public static String encodeToString(byte[] bytes)
bytes - a byte arrayUnsupportedEncodingExceptionCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.