public final class Base64Coder extends Object
Constructor and Description |
---|
Base64Coder() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String encoded)
decodes a Base64 String to a Plain String
|
static String |
decodeToString(String encoded,
String charset)
decodes a Base64 String to a Plain String
|
static String |
encode(byte[] barr)
encodes a byte array to Base64 String
|
static String |
encodeFromString(String plain,
String charset)
encodes a String to Base64 String
|
public Base64Coder()
public static String decodeToString(String encoded, String charset) throws CoderException, UnsupportedEncodingException
encoded
- ExpressionException
CoderException
UnsupportedEncodingException
public static String encodeFromString(String plain, String charset) throws CoderException, UnsupportedEncodingException
plain
- String to encodeCoderException
UnsupportedEncodingException
public static String encode(byte[] barr)
barr
- byte array to encodeCoderException
public static byte[] decode(String encoded) throws CoderException
encoded
- CoderException
Copyright © 2015 Lucee