public class Base64Encoder extends Object
Constructor and Description |
---|
Base64Encoder() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String data)
Translates the specified Base64 string into a byte array.
|
static String |
decodeAsString(String data) |
static String |
encode(byte[] data)
Translates the specified byte array into Base64 string.
|
static String |
encodeFromString(String data) |
public Base64Encoder()
public static String encodeFromString(String data)
public static String encode(byte[] data)
data
- the byte array (not null)public static String decodeAsString(String data) throws CoderException
CoderException
public static byte[] decode(String data) throws CoderException
s
- the Base64 string (not null)CoderException
Copyright © 2015 Lucee