Package gnu.xml
Class XMLParser
- java.lang.Object
-
- gnu.xml.XMLParser
-
public class XMLParser extends 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).
-
-
Constructor Summary
Constructors Constructor Description XMLParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidparse(gnu.kawa.io.InPort in, SourceMessages messages, Consumer out)static voidparse(gnu.kawa.io.InPort in, SourceMessages messages, XMLFilter filter)static voidparse(gnu.kawa.io.InPort in, XMLFilter out)static voidparse(InputStream strm, Object uri, SourceMessages messages, Consumer out)static voidparse(Object uri, SourceMessages messages, Consumer out)static gnu.kawa.io.BinaryInPortXMLStreamReader(InputStream strm)
-
-
-
Method Detail
-
parse
public static void parse(Object uri, SourceMessages messages, Consumer out) throws IOException
- Throws:
IOException
-
XMLStreamReader
public static gnu.kawa.io.BinaryInPort XMLStreamReader(InputStream strm) throws IOException
- Throws:
IOException
-
parse
public static void parse(InputStream strm, Object uri, SourceMessages messages, Consumer out) throws IOException
- Throws:
IOException
-
parse
public static void parse(gnu.kawa.io.InPort in, SourceMessages messages, Consumer out) throws IOException- Throws:
IOException
-
parse
public static void parse(gnu.kawa.io.InPort in, SourceMessages messages, XMLFilter filter) throws IOException- Throws:
IOException
-
parse
public static void parse(gnu.kawa.io.InPort in, XMLFilter out)
-
-