org.apache.pivot.util
Class Base64

java.lang.Object
  extended by org.apache.pivot.util.Base64

public final class Base64
extends Object

Implements the "base64" binary encoding scheme as defined by RFC 2045.


Method Summary
static byte[] decode(String encoded)
          Decodes the specified base64 string back into its raw data.
static String encode(byte[] bytes)
          Encodes the specified data into a base64 string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static String encode(byte[] bytes)
Encodes the specified data into a base64 string.

Parameters:
bytes - The unencoded raw data.

decode

public static byte[] decode(String encoded)
Decodes the specified base64 string back into its raw data.

Parameters:
encoded - The base64 encoded string.