public class HTMLEncoder extends Encoder
Encoder.FixedCharArrayWriter
Modifier and Type | Field and Description |
---|---|
protected static char[] |
AMP_REF |
protected static char[] |
APOS_REF |
protected static char[] |
CHAR_REF_START |
protected static Encoder |
encoder |
protected static char[] |
GT_REF |
static Map |
HTMLEntities |
protected static char[] |
LT_REF |
protected static char[] |
QUOT_REF |
Constructor and Description |
---|
HTMLEncoder() |
Modifier and Type | Method and Description |
---|---|
int |
decode(char[] src,
int soff,
int len,
Writer dst)
Decodes from HTML.
|
int |
encode(char[] src,
int soff,
int len,
Writer dst)
Encodes to HTML.
|
static Encoder |
encoder()
Returns the encoder instance.
|
protected static final char[] AMP_REF
protected static final char[] APOS_REF
protected static final char[] GT_REF
protected static final char[] LT_REF
protected static final char[] QUOT_REF
protected static final char[] CHAR_REF_START
protected static Encoder encoder
public static Map HTMLEntities
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