org.apache.axis.encoding

Class Base64

public class Base64 extends Object

Author: TAMURA Kent <kent@trl.ibm.co.jp>

Method Summary
static byte[]decode(char[] data, int off, int len)
static byte[]decode(String data)
static voiddecode(char[] data, int off, int len, OutputStream ostream)
static voiddecode(String data, OutputStream ostream)
static Stringencode(byte[] data)
Returns base64 representation of specified byte array.
static Stringencode(byte[] data, int off, int len)
Returns base64 representation of specified byte array.
static voidencode(byte[] data, int off, int len, OutputStream ostream)
Outputs base64 representation of the specified byte array to a byte stream.
static voidencode(byte[] data, int off, int len, Writer writer)
Outputs base64 representation of the specified byte array to a character stream.

Method Detail

decode

public static byte[] decode(char[] data, int off, int len)

decode

public static byte[] decode(String data)

decode

public static void decode(char[] data, int off, int len, OutputStream ostream)

decode

public static void decode(String data, OutputStream ostream)

encode

public static String encode(byte[] data)
Returns base64 representation of specified byte array.

encode

public static String encode(byte[] data, int off, int len)
Returns base64 representation of specified byte array.

encode

public static void encode(byte[] data, int off, int len, OutputStream ostream)
Outputs base64 representation of the specified byte array to a byte stream.

encode

public static void encode(byte[] data, int off, int len, Writer writer)
Outputs base64 representation of the specified byte array to a character stream.
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.