XMLFilterImpl

public class XMLFilterImpl extends Object
implements XMLFilter EntityResolver DTDHandler ContentHandler ErrorHandler

Base class for deriving an XML filter.

This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. See http://www.saxproject.org for further information.

This class is designed to sit between an XMLReader and the client application's event handlers. By default, it does nothing but pass requests up to the reader and events on to the handlers unmodified, but subclasses can override specific methods to modify the event stream or the configuration requests as they pass through.

Public Constructor Summary

XMLFilterImpl()
Construct an empty XML filter, with no parent.
XMLFilterImpl(XMLReader parent)
Construct an XML filter with the specified parent.

Public Method Summary

void
characters(char[] ch, int start, int length)
Filter a character data event.
void
endDocument()
Filter an end document event.
void
endElement(String uri, String localName, String qName)
Filter an end element event.
void
endPrefixMapping(String prefix)
Filter an end Namespace prefix mapping event.
void
error(SAXParseException e)
Filter an error event.
void
fatalError(SAXParseException e)
Filter a fatal error event.
ContentHandler
getContentHandler()
Get the content event handler.
DTDHandler
getDTDHandler()
Get the current DTD event handler.
EntityResolver
getEntityResolver()
Get the current entity resolver.
ErrorHandler
getErrorHandler()
Get the current error event handler.
boolean
getFeature(String name)
Look up the value of a feature.
XMLReader
getParent()
Get the parent reader.
Object
getProperty(String name)
Look up the value of a property.
void
ignorableWhitespace(char[] ch, int start, int length)
Filter an ignorable whitespace event.
void
notationDecl(String name, String publicId, String systemId)
Filter a notation declaration event.
void
parse(String systemId)
Parse a document.
void
parse(InputSource input)
Parse a document.
void
processingInstruction(String target, String data)
Filter a processing instruction event.
InputSource
resolveEntity(String publicId, String systemId)
Filter an external entity resolution.
void
setContentHandler(ContentHandler handler)
Set the content event handler.
void
setDTDHandler(DTDHandler handler)
Set the DTD event handler.
void
setDocumentLocator(Locator locator)
Filter a new document locator event.
void
setEntityResolver(EntityResolver resolver)
Set the entity resolver.
void
setErrorHandler(ErrorHandler handler)
Set the error event handler.
void
setFeature(String name, boolean value)
Set the value of a feature.
void
setParent(XMLReader parent)
Set the parent reader.
void
setProperty(String name, Object value)
Set the value of a property.
void
skippedEntity(String name)
Filter a skipped entity event.
void
startDocument()
Filter a start document event.
void
startElement(String uri, String localName, String qName, Attributes atts)
Filter a start element event.
void
startPrefixMapping(String prefix, String uri)
Filter a start Namespace prefix mapping event.
void
unparsedEntityDecl(String name, String publicId, String systemId, String notationName)
Filter an unparsed entity declaration event.
void
warning(SAXParseException e)
Filter a warning event.