gnu.xml
Class XMLParserByte
public class XMLParserByte
extends java.lang.Object
Reads XML from a byte array.
Assumes a state-less character encoding containing ascii as a sub-set,
and where no byte in a multi-byte character is the same as a xml special
character. Any bytes with high-order bit set are treated as if they
are letters, and can be part of names.
Handles CR/LF, CDATA, entity references, processing instructions, DOCTYPE,
as well as the obvious (text, element, and attributes).
void | error(char severity, String message)
|
int | fill(byte[] buffer, int start, int pos) - Fill the buffer with more data.
|
void | parse()
|
buffer
protected byte[] buffer
in
protected InputStream in
error
public void error(char severity,
String message)
fill
public int fill(byte[] buffer,
int start,
int pos)
Fill the buffer with more data.
start
- start of current token.pos
- index of current read position