| |
|
| java.lang.Object org.xml.sax.helpers.XMLFilterImpl
Constructor Summary | |
public | XMLFilterImpl() Construct an empty XML filter, with no parent. | public | XMLFilterImpl(XMLReader parent) Construct an XML filter with the specified parent. |
Method Summary | |
public void | characters(char ch, int start, int length) Filter a character data event. | public void | endDocument() Filter an end document event. | public void | endElement(String uri, String localName, String qName) Filter an end element event. | public void | endPrefixMapping(String prefix) Filter an end Namespace prefix mapping event. | public void | error(SAXParseException e) Filter an error event. | public void | fatalError(SAXParseException e) Filter a fatal error event. | public ContentHandler | getContentHandler() Get the content event handler. | public DTDHandler | getDTDHandler() Get the current DTD event handler. | public EntityResolver | getEntityResolver() Get the current entity resolver. | public ErrorHandler | getErrorHandler() Get the current error event handler. | public boolean | getFeature(String name) Look up the value of a feature.
This will always fail if the parent is null.
Parameters: name - The feature name. | public XMLReader | getParent() Get the parent reader. | public Object | getProperty(String name) Look up the value of a property.
Parameters: name - The property name. | public void | ignorableWhitespace(char ch, int start, int length) Filter an ignorable whitespace event. | public void | notationDecl(String name, String publicId, String systemId) Filter a notation declaration event. | public void | parse(InputSource input) Parse a document. | public void | parse(String systemId) Parse a document. | public void | processingInstruction(String target, String data) Filter a processing instruction event. | public InputSource | resolveEntity(String publicId, String systemId) Filter an external entity resolution.
Parameters: publicId - The entity's public identifier, or null. Parameters: systemId - The entity's system identifier. | public void | setContentHandler(ContentHandler handler) Set the content event handler. | public void | setDTDHandler(DTDHandler handler) Set the DTD event handler. | public void | setDocumentLocator(Locator locator) Filter a new document locator event. | public void | setEntityResolver(EntityResolver resolver) Set the entity resolver. | public void | setErrorHandler(ErrorHandler handler) Set the error event handler. | public void | setFeature(String name, boolean value) Set the value of a feature. | public void | setParent(XMLReader parent) Set the parent reader.
This is the
org.xml.sax.XMLReader XMLReader from which
this filter will obtain its events and to which it will pass its
configuration requests. | public void | setProperty(String name, Object value) Set the value of a property. | public void | skippedEntity(String name) Filter a skipped entity event. | public void | startDocument() Filter a start document event. | public void | startElement(String uri, String localName, String qName, Attributes atts) Filter a start element event. | public void | startPrefixMapping(String prefix, String uri) Filter a start Namespace prefix mapping event. | public void | unparsedEntityDecl(String name, String publicId, String systemId, String notationName) Filter an unparsed entity declaration event. | public void | warning(SAXParseException e) Filter a warning event. |
characters | public void characters(char ch, int start, int length) throws SAXException(Code) | | Filter a character data event.
Parameters: ch - An array of characters. Parameters: start - The starting position in the array. Parameters: length - The number of characters to use from the array. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
endElement | public void endElement(String uri, String localName, String qName) throws SAXException(Code) | | Filter an end element event.
Parameters: uri - The element's Namespace URI, or the empty string. Parameters: localName - The element's local name, or the empty string. Parameters: qName - The element's qualified (prefixed) name, or the emptystring. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
endPrefixMapping | public void endPrefixMapping(String prefix) throws SAXException(Code) | | Filter an end Namespace prefix mapping event.
Parameters: prefix - The Namespace prefix. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
getContentHandler | public ContentHandler getContentHandler()(Code) | | Get the content event handler.
The current content handler, or null if none was set. |
getDTDHandler | public DTDHandler getDTDHandler()(Code) | | Get the current DTD event handler.
The current DTD handler, or null if none was set. |
getEntityResolver | public EntityResolver getEntityResolver()(Code) | | Get the current entity resolver.
The current entity resolver, or null if none was set. |
getErrorHandler | public ErrorHandler getErrorHandler()(Code) | | Get the current error event handler.
The current error handler, or null if none was set. |
ignorableWhitespace | public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code) | | Filter an ignorable whitespace event.
Parameters: ch - An array of characters. Parameters: start - The starting position in the array. Parameters: length - The number of characters to use from the array. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
notationDecl | public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code) | | Filter a notation declaration event.
Parameters: name - The notation name. Parameters: publicId - The notation's public identifier, or null. Parameters: systemId - The notation's system identifier, or null. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
parse | public void parse(String systemId) throws SAXException, IOException(Code) | | Parse a document.
Parameters: systemId - The system identifier as a fully-qualified URI. exception: org.xml.sax.SAXException - Any SAX exception, possiblywrapping another exception. exception: java.io.IOException - An IO exception from the parser,possibly from a byte stream or character streamsupplied by the application. |
processingInstruction | public void processingInstruction(String target, String data) throws SAXException(Code) | | Filter a processing instruction event.
Parameters: target - The processing instruction target. Parameters: data - The text following the target. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
resolveEntity | public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException(Code) | | Filter an external entity resolution.
Parameters: publicId - The entity's public identifier, or null. Parameters: systemId - The entity's system identifier. A new InputSource or null for the default. exception: org.xml.sax.SAXException - The client may throwan exception during processing. exception: java.io.IOException - The client may throw anI/O-related exception while obtaining thenew InputSource. |
setContentHandler | public void setContentHandler(ContentHandler handler)(Code) | | Set the content event handler.
Parameters: handler - the new content handler |
setDTDHandler | public void setDTDHandler(DTDHandler handler)(Code) | | Set the DTD event handler.
Parameters: handler - the new DTD handler |
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | Filter a new document locator event.
Parameters: locator - The document locator. |
setEntityResolver | public void setEntityResolver(EntityResolver resolver)(Code) | | Set the entity resolver.
Parameters: resolver - The new entity resolver. |
setErrorHandler | public void setErrorHandler(ErrorHandler handler)(Code) | | Set the error event handler.
Parameters: handler - the new error handler |
setParent | public void setParent(XMLReader parent)(Code) | | Set the parent reader.
This is the
org.xml.sax.XMLReader XMLReader from which
this filter will obtain its events and to which it will pass its
configuration requests. The parent may itself be another filter.
If there is no parent reader set, any attempt to parse
or to set or get a feature or property will fail.
Parameters: parent - The parent XML reader. See Also: XMLFilterImpl.getParent |
skippedEntity | public void skippedEntity(String name) throws SAXException(Code) | | Filter a skipped entity event.
Parameters: name - The name of the skipped entity. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
startElement | public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code) | | Filter a start element event.
Parameters: uri - The element's Namespace URI, or the empty string. Parameters: localName - The element's local name, or the empty string. Parameters: qName - The element's qualified (prefixed) name, or the emptystring. Parameters: atts - The element's attributes. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
startPrefixMapping | public void startPrefixMapping(String prefix, String uri) throws SAXException(Code) | | Filter a start Namespace prefix mapping event.
Parameters: prefix - The Namespace prefix. Parameters: uri - The Namespace URI. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
unparsedEntityDecl | public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code) | | Filter an unparsed entity declaration event.
Parameters: name - The entity name. Parameters: publicId - The entity's public identifier, or null. Parameters: systemId - The entity's system identifier, or null. Parameters: notationName - The name of the associated notation. exception: org.xml.sax.SAXException - The client may throwan exception during processing. |
|
|
|