Class XMLParser
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.parsers.XMLParser
-
- Direct Known Subclasses:
AbstractXMLDocumentParser,XMLGrammarParser
public abstract class XMLParser extends 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
- Version:
- $Id$
- Author:
- Arnaud Le Hors, IBM, Andy Clark, IBM
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringENTITY_RESOLVERProperty identifier: entity resolver.protected static StringERROR_HANDLERProperty identifier: error handler.protected XMLParserConfigurationfConfigurationThe parser configuration.
-
Constructor Summary
Constructors Modifier Constructor Description protectedXMLParser(XMLParserConfiguration config)Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse(XMLInputSource inputSource)parseprotected voidreset()reset all components before parsing
-
-
-
Field Detail
-
ENTITY_RESOLVER
protected static final String ENTITY_RESOLVER
Property identifier: entity resolver.- See Also:
- Constant Field Values
-
ERROR_HANDLER
protected static final String ERROR_HANDLER
Property identifier: error handler.- See Also:
- Constant Field Values
-
fConfiguration
protected final XMLParserConfiguration fConfiguration
The parser configuration.
-
-
Constructor Detail
-
XMLParser
protected XMLParser(XMLParserConfiguration config)
Default Constructor.
-
-
Method Detail
-
parse
public void parse(XMLInputSource inputSource) throws XNIException, IOException
parse- Parameters:
inputSource-- Throws:
XNIExceptionIOException
-
reset
protected void reset() throws XNIExceptionreset all components before parsing- Throws:
XNIException
-
-