| Modifier and Type | Field and Description |
|---|---|
| private static final byte[][] | |
| public byte[] | |
| private static final byte[][] | entities
UTF-8 encoded entities keyed by their character code. |
| public int |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private int |
| attributeEntities | back to summary |
|---|---|
| private static final byte[][] attributeEntities | |
| buf | back to summary |
|---|---|
| public byte[] buf | |
| entities | back to summary |
|---|---|
| private static final byte[][] entities UTF-8 encoded entities keyed by their character code. e.g., entities['&'] == AMP_ENTITY. In attributes we need to encode more characters. | |
| len | back to summary |
|---|---|
| public int len | |
| Encoded | back to summary |
|---|---|
| public Encoded() | |
| Encoded | back to summary |
|---|---|
| public Encoded(String text) | |
| add | back to summary |
|---|---|
| private static void add(char c, String s, boolean attOnly) | |
| append | back to summary |
|---|---|
| public void append(char b) Appends a new character to the end of the buffer. This assumes that you have enough space in the buffer. | |
| compact | back to summary |
|---|---|
| public void compact() Reallocate the buffer to the exact size of the data to reduce the memory footprint. | |
| ensureSize | back to summary |
|---|---|
| public void ensureSize(int size) | |
| set | back to summary |
|---|---|
| public void set(String text) | |
| setEscape | back to summary |
|---|---|
| public void setEscape(String text, boolean isAttribute) Fill in the buffer by encoding the specified characters while escaping characters like <
| |
| write | back to summary |
|---|---|
| public void write(UTF8XmlOutput out) throws IOException Writes the encoded bytes to the given output stream. | |
| writeEntity | back to summary |
|---|---|
| private int writeEntity(byte[] entity, int ptr) | |