Package org.apache.axis.encoding
Class Base64
java.lang.Object
org.apache.axis.encoding.Base64
- Author:
- TAMURA Kent <kent@trl.ibm.co.jp>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
decode
(char[] data, int off, int len) static void
decode
(char[] data, int off, int len, OutputStream ostream) static byte[]
static void
decode
(String data, OutputStream ostream) static String
encode
(byte[] data) Returns base64 representation of specified byte array.static String
encode
(byte[] data, int off, int len) Returns base64 representation of specified byte array.static void
encode
(byte[] data, int off, int len, OutputStream ostream) Outputs base64 representation of the specified byte array to a byte stream.static void
Outputs base64 representation of the specified byte array to a character stream.
-
Constructor Details
-
Base64
public Base64()
-
-
Method Details
-
decode
public static byte[] decode(char[] data, int off, int len) -
decode
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
encode
Returns base64 representation of specified byte array. -
encode
Returns base64 representation of specified byte array. -
encode
Outputs base64 representation of the specified byte array to a byte stream.- Throws:
IOException
-
encode
Outputs base64 representation of the specified byte array to a character stream.- Throws:
IOException
-