com.compoze.collab.util
Class Base64

java.lang.Object
  extended by com.compoze.collab.util.Base64

public class Base64
extends Object

This class provides base 64 encoding and decoding.


Method Summary
static byte[] base64Decode(byte[] data)
          This method decodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).
static byte[] base64Encode(byte[] data)
          This method encodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

base64Encode

public static final byte[] base64Encode(byte[] data)
This method encodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters
data - the data
Returns
the base64-encoded data

base64Decode

public static final byte[] base64Decode(byte[] data)
This method decodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8).

Parameters
data - the base64-encoded data.
Returns
the decoded data.


Copyright © 2006 BEA Systems, Inc. All Rights Reserved