public class Base64
extends java.lang.Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(char[] data,
int off,
int len) |
static void |
decode(char[] data,
int off,
int len,
java.io.OutputStream ostream) |
static byte[] |
decode(java.lang.String data) |
static void |
decode(java.lang.String data,
java.io.OutputStream ostream) |
static java.lang.String |
encode(byte[] data)
Returns base64 representation of specified byte array.
|
static java.lang.String |
encode(byte[] data,
int off,
int len)
Returns base64 representation of specified byte array.
|
static void |
encode(byte[] data,
int off,
int len,
java.io.OutputStream ostream)
Outputs base64 representation of the specified byte array to a byte stream.
|
static void |
encode(byte[] data,
int off,
int len,
java.io.Writer writer)
Outputs base64 representation of the specified byte array to a character stream.
|
public static byte[] decode(char[] data, int off, int len)
public static byte[] decode(java.lang.String data)
public static void decode(char[] data, int off, int len, java.io.OutputStream ostream) throws java.io.IOException
java.io.IOException
public static void decode(java.lang.String data, java.io.OutputStream ostream) throws java.io.IOException
java.io.IOException
public static java.lang.String encode(byte[] data)
public static java.lang.String encode(byte[] data, int off, int len)
public static void encode(byte[] data, int off, int len, java.io.OutputStream ostream) throws java.io.IOException
java.io.IOException
public static void encode(byte[] data, int off, int len, java.io.Writer writer) throws java.io.IOException
java.io.IOException