java.lang.Object | +--org.xml.sax.helpers.XMLFilterImplAll Implemented Interfaces:
org.xml.sax.XMLFilter
org.xml.sax.XMLReader
org.xml.sax.EntityResolver
org.xml.sax.DTDHandler
org.xml.sax.ContentHandler
org.xml.sax.ErrorHandler
Construct an empty XML filter, with no parent. |
XMLFilterImpl(XMLReader parent) Construct an XML filter with the specified parent. |
void | characters(char[] ch, int start, int length) Filter a character data event. |
void | Filter an end document event. |
void | endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) Filter an end element event. |
void | endPrefixMapping(java.lang.String prefix) Filter an end Namespace prefix mapping event. |
void | Filter an error event. |
void | fatalError(SAXParseException e) Filter a fatal error event. |
Get the content event handler. | |
Get the current DTD event handler. | |
Get the current entity resolver. | |
Get the current error event handler. | |
boolean | getFeature(java.lang.String name) Look up the value of a feature. |
Get the parent reader. | |
java.lang.Object | getProperty(java.lang.String name) Look up the value of a property. |
void | ignorableWhitespace(char[] ch, int start, int length) Filter an ignorable whitespace event. |
void | notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId) Filter a notation declaration event. |
void | parse(InputSource input) Parse a document. |
void | parse(java.lang.String systemId) Parse a document. |
void | processingInstruction(java.lang.String target, java.lang.String data) Filter a processing instruction event. |
resolveEntity(java.lang.String publicId, java.lang.String systemId) Filter an external entity resolution. | |
void | setContentHandler(ContentHandler handler) Set the content event handler. |
void | setDocumentLocator(Locator locator) Filter a new document locator event. |
void | setDTDHandler(DTDHandler handler) Set the DTD event handler. |
void | setEntityResolver(EntityResolver resolver) Set the entity resolver. |
void | setErrorHandler(ErrorHandler handler) Set the error event handler. |
void | setFeature(java.lang.String name, boolean value) Set the value of a feature. |
void | Set the parent reader. |
void | setProperty(java.lang.String name, java.lang.Object value) Set the value of a property. |
void | skippedEntity(java.lang.String name) Filter a skipped entity event. |
void | Filter a start document event. |
void | startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, Attributes atts) Filter a start element event. |
void | startPrefixMapping(java.lang.String prefix, java.lang.String uri) Filter a start Namespace prefix mapping event. |
void | unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName) Filter an unparsed entity declaration event. |
void | Filter a warning event. |
public XMLFilterImpl()
org.xml.sax.XMLReader.setFeature
org.xml.sax.XMLReader.setProperty
setParent
public XMLFilterImpl(XMLReader parent)
setParent
getParent
public void characters(char[] ch, int start, int length)
SAXException
- The client may throw
an exception during processing.public void endDocument()
SAXException
- The client may throw
an exception during processing.public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
SAXException
- The client may throw
an exception during processing.public void endPrefixMapping(java.lang.String prefix)
SAXException
- The client may throw
an exception during processing.public void error(SAXParseException e)
SAXException
- The client may throw
an exception during processing.public void fatalError(SAXParseException e)
SAXException
- The client may throw
an exception during processing.public ContentHandler getContentHandler()
public DTDHandler getDTDHandler()
public EntityResolver getEntityResolver()
public ErrorHandler getErrorHandler()
public boolean getFeature(java.lang.String name)
SAXNotRecognizedException
- If the feature
value can't be assigned or retrieved from the parent.SAXNotSupportedException
- When the
parent recognizes the feature name but
cannot determine its value at this time.public XMLReader getParent()
setParent
public Object getProperty(java.lang.String name)
SAXNotRecognizedException
- If the property
value can't be assigned or retrieved from the parent.SAXNotSupportedException
- When the
parent recognizes the property name but
cannot determine its value at this time.public void ignorableWhitespace(char[] ch, int start, int length)
SAXException
- The client may throw
an exception during processing.public void notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
SAXException
- The client may throw
an exception during processing.public void parse(java.lang.String systemId)
SAXException
- Any SAX exception, possibly
wrapping another exception.java.io.IOException
- An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.public void parse(InputSource input)
SAXException
- Any SAX exception, possibly
wrapping another exception.java.io.IOException
- An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.public void processingInstruction(java.lang.String target, java.lang.String data)
SAXException
- The client may throw
an exception during processing.public InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
SAXException
- The client may throw
an exception during processing.java.io.IOException
- The client may throw an
I/O-related exception while obtaining the
new InputSource.public void setContentHandler(ContentHandler handler)
public void setDocumentLocator(Locator locator)
public void setDTDHandler(DTDHandler handler)
public void setEntityResolver(EntityResolver resolver)
public void setErrorHandler(ErrorHandler handler)
public void setFeature(java.lang.String name, boolean value)
SAXNotRecognizedException
- If the feature
value can't be assigned or retrieved from the parent.SAXNotSupportedException
- When the
parent recognizes the feature name but
cannot set the requested value.public void setParent(XMLReader parent)
getParent
public void setProperty(java.lang.String name, java.lang.Object value)
SAXNotRecognizedException
- If the property
value can't be assigned or retrieved from the parent.SAXNotSupportedException
- When the
parent recognizes the property name but
cannot set the requested value.public void skippedEntity(java.lang.String name)
SAXException
- The client may throw
an exception during processing.public void startDocument()
SAXException
- The client may throw
an exception during processing.public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, Attributes atts)
SAXException
- The client may throw
an exception during processing.public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
SAXException
- The client may throw
an exception during processing.public void unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName)
SAXException
- The client may throw
an exception during processing.public void warning(SAXParseException e)
SAXException
- The client may throw
an exception during processing.