| Modifier and Type | Field and Description |
|---|---|
| protected boolean | fUseEntityResolver2
Use EntityResolver2. |
| private static final String[] | |
| private static final String[] | RECOGNIZED_PROPERTIES
Hides com. |
| protected static final String | |
| protected static final String | SYMBOL_TABLE
Property identifier: symbol table. |
| protected static final String | USE_ENTITY_RESOLVER2
Feature identifier: EntityResolver2. |
| private static final String | XML_SECURITY_PROPERTY_MANAGER
Property identifier: Security property manager. |
| protected static final String | XMLGRAMMAR_POOL
Property identifier: XML grammar pool. |
| Access | Constructor and Description |
|---|---|
| public | DOMParser(XMLParserConfiguration config)
Constructs a DOM parser using the specified parser configuration. |
| public | |
| public | |
| public | DOMParser(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Constructs a DOM parser using the specified symbol table and grammar pool. |
| Modifier and Type | Method and Description |
|---|---|
| public EntityResolver | Returns: The current entity resolver, or null if none has been registered.Return the current entity resolver. |
| public ErrorHandler | Returns: The current error handler, or null if none has been registered.Return the current error handler. |
| public boolean | Returns: The current state of the feature.The unique identifier (URI) of the feature
being set. featureId)Overrides com. Query the state of a feature. |
| public Object | Returns: The current value of the property.The unique identifier (URI) of the property
being set. propertyId)Query the value of a property. |
| public XMLParserConfiguration | |
| public void | |
| public void | |
| public void | setEntityResolver(EntityResolver
The new entity resolver. Passing a null value will
uninstall the currently installed resolver. resolver)Sets the resolver used to resolve external entities. |
| public void | setErrorHandler(ErrorHandler
The error handler. errorHandler)Allow an application to register an error event handler. |
| public void | setFeature(String
The unique identifier (URI) of the feature. featureId, boolean The requested state of the feature (true or false). state)Set the state of any feature in a SAX2 parser. |
| public void | setProperty(String
The unique identifier (URI) of the property
being set. propertyId, Object The value to which the property is being set. value)Set the value of any property in a SAX2 parser. |
| public void |
| fUseEntityResolver2 | back to summary |
|---|---|
| protected boolean fUseEntityResolver2 Use EntityResolver2. | |
| RECOGNIZED_FEATURES | back to summary |
|---|---|
| private static final String[] RECOGNIZED_FEATURES Hides com. | |
| RECOGNIZED_PROPERTIES | back to summary |
|---|---|
| private static final String[] RECOGNIZED_PROPERTIES Hides com. Recognized properties. | |
| REPORT_WHITESPACE | back to summary |
|---|---|
| protected static final String REPORT_WHITESPACE | |
| SYMBOL_TABLE | back to summary |
|---|---|
| protected static final String SYMBOL_TABLE Property identifier: symbol table. | |
| USE_ENTITY_RESOLVER2 | back to summary |
|---|---|
| protected static final String USE_ENTITY_RESOLVER2 Feature identifier: EntityResolver2. | |
| XML_SECURITY_PROPERTY_MANAGER | back to summary |
|---|---|
| private static final String XML_SECURITY_PROPERTY_MANAGER Property identifier: Security property manager. | |
| XMLGRAMMAR_POOL | back to summary |
|---|---|
| protected static final String XMLGRAMMAR_POOL Property identifier: XML grammar pool. | |
| DOMParser | back to summary |
|---|---|
| public DOMParser(XMLParserConfiguration config) Constructs a DOM parser using the specified parser configuration. | |
| DOMParser | back to summary |
|---|---|
| public DOMParser() Constructs a DOM parser using the dtd/xml schema parser configuration. | |
| DOMParser | back to summary |
|---|---|
| public DOMParser(SymbolTable symbolTable) Constructs a DOM parser using the specified symbol table. | |
| DOMParser | back to summary |
|---|---|
| public DOMParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) Constructs a DOM parser using the specified symbol table and grammar pool. | |
| getEntityResolver | back to summary |
|---|---|
| public EntityResolver getEntityResolver() Return the current entity resolver.
| |
| getErrorHandler | back to summary |
|---|---|
| public ErrorHandler getErrorHandler() Return the current error handler.
| |
| getFeature | back to summary |
|---|---|
| public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException Overrides com. Query the state of a feature. Query the current state of any feature in a SAX2 parser. The parser might not recognize the feature.
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String propertyId) throws SAXNotRecognizedException, SAXNotSupportedException Query the value of a property. Return the current value of a property in a SAX2 parser. The parser might not recognize the property.
| |
| getXMLParserConfiguration | back to summary |
|---|---|
| public XMLParserConfiguration getXMLParserConfiguration() Returns this parser's XMLParserConfiguration. | |
| parse | back to summary |
|---|---|
| public void parse(String systemId) throws SAXException, IOException Parses the input source specified by the given system identifier. This method is equivalent to the following:
parse(new InputSource(systemId));
| |
| parse | back to summary |
|---|---|
| public void parse(InputSource inputSource) throws SAXException, IOException parse | |
| setEntityResolver | back to summary |
|---|---|
| public void setEntityResolver(EntityResolver resolver) Sets the resolver used to resolve external entities. The EntityResolver interface supports resolution of public and system identifiers.
| |
| setErrorHandler | back to summary |
|---|---|
| public void setErrorHandler(ErrorHandler errorHandler) Allow an application to register an error event handler. If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs. Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
| |
| setFeature | back to summary |
|---|---|
| public void setFeature(String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException Set the value of any property in a SAX2 parser. The parser might not recognize the property, and if it does recognize it, it might not support the requested value.
| |
| setProperty0 | back to summary |
|---|---|
| public void setProperty0(String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException | |