|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oakgrovesystems.util.Base64Encoder
Encodes/decodes byte arrays to/from Base64-encoded Strings.
Constructor Summary | |
Base64Encoder()
|
Method Summary | |
static byte[] |
decode(java.lang.String inStr)
Decodes a Base64 string to a byte array. |
static java.lang.String |
encode(byte[] in)
Encodes a byte array to a Base64 String. |
static java.lang.String |
encode(byte[] in,
boolean standard)
Encodes a byte array to a Base64 String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Base64Encoder()
Method Detail |
public static java.lang.String encode(byte[] in)
public static java.lang.String encode(byte[] in, boolean standard)
standard
- true if you want a standards compliant encoding; false if you want an encoding that can be used in URLspublic static byte[] decode(java.lang.String inStr) throws Base64Exception
Base64Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |