|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.util.Base64Decoder
public final class Base64Decoder
Class decodes a Base64 encoded string back into the original byte representation that can be read as byte array.
Constructor Summary | |
---|---|
Base64Decoder()
Construct a default Base64Decoder waiting on calls to its translate() method. |
Method Summary | |
---|---|
static byte[] |
decode(java.lang.String str)
Decode given string into a decoded byte array. |
byte[] |
getByteArray()
Get all decoded octets as byte array. |
void |
translate(java.lang.String string)
Translate every base64 character from given string into a sextet byte value by using above translation array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64Decoder()
Method Detail |
---|
public static byte[] decode(java.lang.String str)
str
- Base64 String to be decoded.
public void translate(java.lang.String string)
string
- Base64 String to be decoded.public byte[] getByteArray()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |