All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class ORG.opengroup.jar.Base64

java.lang.Object
    |
    +----ORG.opengroup.jar.Base64

public class Base64
extends Object
Base64 is a standard for passing binary data as ASCII. RFC 2045


Constructor Index

 o Base64()

Method Index

 o ascToBin(byte[])
 o binToAsc(byte[])
Convert an array of binary bytes to an array of ASCII bytes.

Constructors

 o Base64
public Base64()

Methods

 o ascToBin
public static byte[] ascToBin(byte[] asc) throws Invalid64Exception
 o binToAsc
public static byte[] binToAsc(byte[] bin)
Convert an array of binary bytes to an array of ASCII bytes.

ASCII characters used are A-Z, a-z, 0-9, /, and +. The '=' is used to pad the ascii to a multiple of 4 bytes.

Parameters:
bin - The binary data.
Returns:
The equivalant ASCII data.

All Packages  Class Hierarchy  This Package  Previous  Next  Index