|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.util.XPBase64Coder
public class XPBase64Coder
Encodes and decodes to and from Base64 notation.
Change Log:
I am placing this code in the Public Domain. Do with it as you will. This software comes with no guarantees or warranties but with plenty of well-wishing instead! Please visit http://iharder.net/xmlizable periodically to check for updates or to contribute improvements.
Method Summary | |
---|---|
static byte[] |
Decode(java.lang.String s)
Decodes data from Base64 notation. |
static java.lang.String |
DecodeToString(java.lang.String s)
Decodes data from Base64 notation and returns it as a string. |
static java.lang.String |
Encode(byte[] source)
Encodes a byte array into Base64 notation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String Encode(byte[] source)
encodeBytes( source, 0, source.length )
source
- The data to convert
public static byte[] Decode(java.lang.String s)
s
- the string to decode
public static java.lang.String DecodeToString(java.lang.String s)
new String( Decode( s ) )
s
- the strind to decode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |