|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.misc.Base64
Base 64 encoding class. Many thanks goes to Wei Dai's Crypto++ for providing public domain C++ code that this could be derived from.
| Constructor Summary | |
Base64()
|
|
| Method Summary | |
static byte[] |
decode(String data)
decode - Decodes a Base64 encoded string back into its original binary format. |
static byte[] |
decodeNoPadding(String data)
Note: this function does not process stricly compliant Base64 code. |
static String |
encode(byte[] inBuffer)
encode - Encodes a binary byte array into an Ascii String (including 80 column line wrap. |
static String |
encodeNoPadding(byte[] inBuffer)
Note: this function does not process stricly compliant Base64 code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Base64()
| Method Detail |
public static byte[] decode(String data)
throws IllegalArgumentException
data - the data to decode
IllegalArgumentException
public static byte[] decodeNoPadding(String data)
throws IllegalArgumentException
data - the Base64 encoded string
IllegalArgumentException - if the input data is null or zero bytes.
public static String encode(byte[] inBuffer)
throws IllegalArgumentException
IllegalArgumentException
public static String encodeNoPadding(byte[] inBuffer)
throws IllegalArgumentException
IllegalArgumentException - if the input data is null or zero bytes.
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||