public class CharRefEncoder extends Encoder
Encoder.FixedCharArrayWriter
Modifier and Type | Field and Description |
---|---|
protected static char[] |
CHAR_REF_START |
protected static Encoder |
encoder |
Constructor and Description |
---|
CharRefEncoder() |
Modifier and Type | Method and Description |
---|---|
int |
decode(char[] src,
int soff,
int len,
Writer dst)
Decodes from XML char refs.
|
int |
encode(char[] src,
int soff,
int len,
Writer dst)
Encodes to XML (decimal) char refs.
|
static Encoder |
encoder()
Returns the encoder instance.
|
protected static final char[] CHAR_REF_START
protected static Encoder encoder
public static Encoder encoder()
public int encode(char[] src, int soff, int len, Writer dst) throws IOException
encode
in class Encoder
src
- Char array to encode.soff
- Offset in the src array at which to begin reading.len
- Length of src array to encode.dst
- Writer in which to write the encoded chars.IOException
public int decode(char[] src, int soff, int len, Writer dst) throws IOException
decode
in class Encoder
src
- Char array to decode.soff
- Offset in the src array at which to begin reading.len
- Length of src array to decode.dst
- Writer in which to write the decoded chars.IOException