de.ispsoft.jaxme.util
Class Base64

java.lang.Object
  extended byde.ispsoft.jaxme.util.Base64

public class Base64
extends java.lang.Object

Utility class which encapsulates Base64 encoding.

Author:
Jochen Wiedmann

Constructor Summary
Base64()
           
 
Method Summary
static int compare(byte[] pArray1, byte[] pArray2)
          Compares the two byte arrays; utility method for use in a comparator.
static byte[] decode(java.lang.String pStr)
          Converts the Base64 encoded string into a byte array.
static java.lang.String encode(byte[] pBytes)
          Converts the byte array into a Base64 encoded string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

encode

public static java.lang.String encode(byte[] pBytes)

Converts the byte array into a Base64 encoded string.


decode

public static byte[] decode(java.lang.String pStr)

Converts the Base64 encoded string into a byte array.

Throws:
java.lang.IllegalArgumentException - The string pStr did not contain a valid base64 encoded byte array.

compare

public static int compare(byte[] pArray1,
                          byte[] pArray2)

Compares the two byte arrays; utility method for use in a comparator.