gnu.xml
Class XMLParser
java.lang.Object
gnu.xml.XMLParser
public class XMLParser
- extends java.lang.Object
Reads XML from a char 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).
Method Summary |
static void |
parse(java.io.InputStream strm,
java.lang.Object uri,
SourceMessages messages,
Consumer out)
|
static void |
parse(LineBufferedReader in,
SourceMessages messages,
Consumer out)
|
static void |
parse(LineBufferedReader in,
SourceMessages messages,
XMLFilter filter)
|
static void |
parse(LineBufferedReader in,
XMLFilter out)
|
static void |
parse(java.lang.Object uri,
SourceMessages messages,
Consumer out)
|
static LineInputStreamReader |
XMLStreamReader(java.io.InputStream strm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParser
public XMLParser()
parse
public static void parse(java.lang.Object uri,
SourceMessages messages,
Consumer out)
throws java.io.IOException
- Throws:
java.io.IOException
XMLStreamReader
public static LineInputStreamReader XMLStreamReader(java.io.InputStream strm)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public static void parse(java.io.InputStream strm,
java.lang.Object uri,
SourceMessages messages,
Consumer out)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public static void parse(LineBufferedReader in,
SourceMessages messages,
Consumer out)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public static void parse(LineBufferedReader in,
SourceMessages messages,
XMLFilter filter)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public static void parse(LineBufferedReader in,
XMLFilter out)