danger.mime
Class Base64

java.lang.Object
  extended by danger.mime.Base64


public class Base64
extends Object

Encode/decode Base 64 Encoding according to RFC 1521.


Method Summary
static byte[] decode(byte[] inToDecode, int inOffset, int inLength)
           
static byte[] decode(String inToDecode)
          Decode a String of us-ascii characters into a byte array according to RFC 1521.
static String encode(byte[] inToEncode)
          Encode an array of bytes into a us-ascii string according to RFC 1521.
 
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[] inToEncode)
Encode an array of bytes into a us-ascii string according to RFC 1521.

Parameters:
inToEncode - byte[] to be encoded.
Returns:
the encoded String.

decode

public static byte[] decode(String inToDecode)
Decode a String of us-ascii characters into a byte array according to RFC 1521.

Parameters:
inToDecode - String to be decoded.
Returns:
the decoded byte[].

decode

public static final byte[] decode(byte[] inToDecode,
                                  int inOffset,
                                  int inLength)