public class AsciiEncoder extends Encoder
Encoder.FixedCharArrayWriter
Constructor and Description |
---|
AsciiEncoder() |
Modifier and Type | Method and Description |
---|---|
int |
decode(char[] src,
int soffset,
int length,
Writer dst)
Decodes from the format.
|
int |
encode(char[] src,
int soffset,
int length,
Writer dst)
Encodes to the format.
|
static Encoder |
encoder()
Returns the encoder instance.
|
protected static Encoder encoder
public static Encoder encoder()
public int encode(char[] src, int soffset, int length, Writer dst) 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.dst
- Writer in which to write the encoded chars.IOException
public int decode(char[] src, int soffset, int length, Writer dst) 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.dst
- Writer in which to write the decoded chars.IOException