public class Base64Codec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
DECODING_CHARACTERS
Field containing all encodable characters.
|
static byte[] |
ENCODING_CHARACTERS
Field containing all base64 characters.
|
Constructor and Description |
---|
Base64Codec() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] input)
Decodes the given base64 bytes.
|
static void |
decode(java.io.InputStream in,
java.io.OutputStream out)
Decodes the base64 characters in the given input stream to the given output stream.
|
static byte |
decode(int character)
Decodes a single base64 byte to a character.
|
static byte[] |
encode(byte[] input)
Encodes the given bytes to base64.
|
static void |
encode(java.io.InputStream in,
java.io.OutputStream out)
Encodes the characters in the given input stream to base64 characters to the given output stream.
|
static byte |
encode(int character)
Encodes a single byte to a base64 character.
|
public static final byte[] ENCODING_CHARACTERS
public static final byte[] DECODING_CHARACTERS
public static byte[] encode(byte[] input)
public static byte[] decode(byte[] input)
public static void encode(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static void decode(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static byte encode(int character)
public static byte decode(int character)
Further documentation and examples can be found under www.mathletfactory.de.