Class XMLParser
- java.lang.Object
-
- org.htmlunit.cyberneko.xerces.parsers.XMLParser
-
- Direct Known Subclasses:
AbstractXMLDocumentParser
public abstract class XMLParser extends java.lang.Object
Base class of all XML-related parsers.In addition to the features and properties recognized by the parser configuration, this parser recognizes these additional features and properties:
- Properties
- http://apache.org/xml/properties/internal/error-handler
- http://apache.org/xml/properties/internal/entity-resolver
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
ERROR_HANDLER
Property identifier: error handler.protected XMLParserConfiguration
parserConfiguration_
The parser configuration.private static java.lang.String[]
RECOGNIZED_PROPERTIES
Recognized properties.
-
Constructor Summary
Constructors Modifier Constructor Description protected
XMLParser(XMLParserConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parse(XMLInputSource inputSource)
Parse.protected void
reset()
reset all components before parsing
-
-
-
Field Detail
-
ERROR_HANDLER
protected static final java.lang.String ERROR_HANDLER
Property identifier: error handler.- See Also:
- Constant Field Values
-
RECOGNIZED_PROPERTIES
private static final java.lang.String[] RECOGNIZED_PROPERTIES
Recognized properties.
-
parserConfiguration_
protected final XMLParserConfiguration parserConfiguration_
The parser configuration.
-
-
Constructor Detail
-
XMLParser
protected XMLParser(XMLParserConfiguration config)
-
-
Method Detail
-
parse
public void parse(XMLInputSource inputSource) throws XNIException, java.io.IOException
Parse.- Parameters:
inputSource
- the input source- Throws:
XNIException
- on errorjava.io.IOException
- on error
-
reset
protected void reset() throws XNIException
reset all components before parsing- Throws:
XNIException
-
-