XMLReader implementations.
Contains properties as defined in XMLReader, and does not recognize any features.
setContentHandler(org.xml.sax.ContentHandler) , setDTDHandler(org.xml.sax.DTDHandler) , setEntityResolver(org.xml.sax.EntityResolver) , setErrorHandler(org.xml.sax.ErrorHandler)
| Modifier and Type | Field and Description |
|---|---|
| private ContentHandler | |
| private DTDHandler | |
| private EntityResolver | |
| private ErrorHandler | |
| private LexicalHandler |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ContentHandler | getContentHandler()
Implements org. Return the current content handler. |
| public DTDHandler | |
| public EntityResolver | getEntityResolver()
Implements org. Return the current entity resolver. |
| public ErrorHandler | getErrorHandler()
Implements org. Return the current error handler. |
| public boolean | getFeature(String
The feature name, which is a fully-qualified URI. name)Implements org. This implementation throws a |
| protected LexicalHandler | |
| public Object | getProperty(String
The property name, which is a fully-qualified URI. name)Implements org. Throws a |
| public void | setContentHandler(ContentHandler
The content handler. contentHandler)Implements org. Allow an application to register a content event handler. |
| public void | setDTDHandler(DTDHandler
The DTD handler. dtdHandler)Implements org. Allow an application to register a DTD event handler. |
| public void | setEntityResolver(EntityResolver
The entity resolver. entityResolver)Implements org. Allow an application to register an entity resolver. |
| public void | setErrorHandler(ErrorHandler
The error handler. errorHandler)Implements org. Allow an application to register an error event handler. |
| public void | setFeature(String
The feature name, which is a fully-qualified URI. name, boolean The requested value of the feature (true or false). value)Implements org. This implementation throws a |
| public void | setProperty(String
The property name, which is a fully-qualified URI. name, Object The requested value for the property. value)Implements org. Throws a |
| contentHandler | back to summary |
|---|---|
| private ContentHandler contentHandler
| |
| dtdHandler | back to summary |
|---|---|
| private DTDHandler dtdHandler
| |
| entityResolver | back to summary |
|---|---|
| private EntityResolver entityResolver
| |
| errorHandler | back to summary |
|---|---|
| private ErrorHandler errorHandler
| |
| lexicalHandler | back to summary |
|---|---|
| private LexicalHandler lexicalHandler
| |
| AbstractXMLReader | back to summary |
|---|---|
| pack-priv AbstractXMLReader() | |
| getContentHandler | back to summary |
|---|---|
| public ContentHandler getContentHandler() Implements org. Doc from org. Return the current content handler.
| |
| getDTDHandler | back to summary |
|---|---|
| public DTDHandler getDTDHandler() Implements org. Doc from org. Return the current DTD handler.
| |
| getEntityResolver | back to summary |
|---|---|
| public EntityResolver getEntityResolver() Implements org. Doc from org. Return the current entity resolver.
| |
| getErrorHandler | back to summary |
|---|---|
| public ErrorHandler getErrorHandler() Implements org. Doc from org. Return the current error handler.
| |
| getFeature | back to summary |
|---|---|
| public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException Implements org. This implementation throws a
| |
| getLexicalHandler | back to summary |
|---|---|
protected LexicalHandler getLexicalHandler()
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException Implements org. Throws a
| |
| setContentHandler | back to summary |
|---|---|
| public void setContentHandler(ContentHandler contentHandler) Implements org. Doc from org. Allow an application to register a content event handler. If the application does not register a content handler, all content events reported by the SAX parser will be silently ignored. 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.
| |
| setDTDHandler | back to summary |
|---|---|
| public void setDTDHandler(DTDHandler dtdHandler) Implements org. Doc from org. Allow an application to register a DTD event handler. If the application does not register a DTD handler, all DTD events reported by the SAX parser will be silently ignored. 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.
| |
| setEntityResolver | back to summary |
|---|---|
| public void setEntityResolver(EntityResolver entityResolver) Implements org. Doc from org. Allow an application to register an entity resolver. If the application does not register an entity resolver, the XMLReader will perform its own default resolution. Applications may register a new or different resolver in the middle of a parse, and the SAX parser must begin using the new resolver immediately.
| |
| setErrorHandler | back to summary |
|---|---|
| public void setErrorHandler(ErrorHandler errorHandler) Implements org. Doc from org. 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 name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException Implements org. This implementation throws a
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException Implements org. Throws a
| |