org.webmacro.util
Class Base64
java.lang.Object
|
+--org.webmacro.util.Base64
- public final class Base64
- extends java.lang.Object
Method Summary |
static java.lang.String |
decode(byte[] encoded)
Ge tthe plain text version of a base64 encoded byte array |
static java.lang.String |
decode(java.lang.String encoded)
Get the plain text version of a base64 encoded string |
static java.lang.String |
encode(byte[] plain)
Get the base64 encoded version of a plain text byte array |
static java.lang.String |
encode(java.lang.String plainText)
Get the base64 encoded version of a plain text String |
static void |
main(java.lang.String[] arg)
Test harness |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64
public Base64()
decode
public static final java.lang.String decode(java.lang.String encoded)
- Get the plain text version of a base64 encoded string
encode
public static final java.lang.String encode(java.lang.String plainText)
- Get the base64 encoded version of a plain text String
decode
public static final java.lang.String decode(byte[] encoded)
- Ge tthe plain text version of a base64 encoded byte array
encode
public static final java.lang.String encode(byte[] plain)
- Get the base64 encoded version of a plain text byte array
main
public static void main(java.lang.String[] arg)
- Test harness