public class BASE64Encoder extends Encoder
Encoder.FixedCharArrayWriter
Modifier and Type | Field and Description |
---|---|
protected static Encoder |
encoder |
static String |
SYSTEM_ENCODING |
Constructor and Description |
---|
BASE64Encoder() |
Modifier and Type | Method and Description |
---|---|
int |
decode(char[] src,
int soffset,
int length,
Writer writer)
Decodes from the format.
|
int |
encode(char[] src,
int soffset,
int length,
Writer writer)
Encodes to the format.
|
static Encoder |
encoder()
Returns the encoder instance.
|
public static final String SYSTEM_ENCODING
protected static Encoder encoder
public static Encoder encoder()
public int decode(char[] src, int soffset, int length, Writer writer) throws IOException
decode
in class Encoder
src
- Char array to decode.soffset
- Offset in the src array at which to begin reading.length
- Length of src array to decode.writer
- Writer in which to write the decoded chars.IOException
public int encode(char[] src, int soffset, int length, Writer writer) throws IOException
encode
in class Encoder
src
- Char array to encode.soffset
- Offset in the src array at which to begin reading.length
- Length of src array to encode.writer
- Writer in which to write the encoded chars.IOException