|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.coder.Base64Coder
public final class Base64Coder
Util class to handle Base 64 Encoded Strings
Constructor Summary | |
---|---|
Base64Coder()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64Coder()
Method Detail |
---|
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 encode
CoderException
UnsupportedEncodingException
public static String encode(byte[] barr) throws CoderException
barr
- byte array to encode
CoderException
public static byte[] decode(String encoded) throws CoderException
encoded
-
CoderException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |