|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
org.xml.sax.helpers.XMLFilterImpl
, DTDHandler
, EntityResolver
, ErrorHandler
, XMLFilter
, XMLReader

public class XMLFilterImpl

, 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.
XMLFilter
,
XMLReader
,
EntityResolver
,
DTDHandler
,
ContentHandler
,
ErrorHandler

| Constructor Summary | |
|---|---|
XMLFilterImpl
Construct an empty XML filter, with no parent. |
|
XMLFilterImpl
Construct an XML filter with the specified parent. |
|
| Method Summary | |
|---|---|
void |
characters
Filter a character data event. |
void |
endDocument
Filter an end document event. |
void |
endElement
Filter an end element event. |
void |
endPrefixMapping
Filter an end Namespace prefix mapping event. |
void |
error
Filter an error event. |
void |
fatalError
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
Look up the value of a feature. |
XMLReader |
getParent
Get the parent reader. |
Object |
getProperty
Look up the value of a property. |
void |
ignorableWhitespace
Filter an ignorable whitespace event. |
void |
notationDecl
Filter a notation declaration event. |
void |
parse
Parse a document. |
void |
parse
Parse a document. |
void |
processingInstruction
Filter a processing instruction event. |
InputSource |
resolveEntity
Filter an external entity resolution. |
void |
setContentHandler
Set the content event handler. |
void |
setDocumentLocator
Filter a new document locator event. |
void |
setDTDHandler
Set the DTD event handler. |
void |
setEntityResolver
Set the entity resolver. |
void |
setErrorHandler
Set the error event handler. |
void |
setFeature
Set the value of a feature. |
void |
setParent
Set the parent reader. |
void |
setProperty
Set the value of a property. |
void |
skippedEntity
Filter a skipped entity event. |
void |
startDocument
Filter a start document event. |
void |
startElement
Filter a start element event. |
void |
startPrefixMapping
Filter a start Namespace prefix mapping event. |
void |
unparsedEntityDecl
Filter an unparsed entity declaration event. |
void |
warning
Filter a warning event. |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| Constructor Detail |
|---|

public XMLFilterImpl()
This filter will have no parent: you must assign a parent
before you start a parse or do any configuration with
setFeature or setProperty, unless you use this as a pure event
consumer rather than as an XMLReader
.
XMLReader.setFeature(java.lang.String, boolean)
,
XMLReader.setProperty(java.lang.String, java.lang.Object)
,
setParent(org.xml.sax.XMLReader)


public XMLFilterImpl(XMLReader![]()
![]()
parent)
setParent(org.xml.sax.XMLReader)
,
getParent()

| Method Detail |
|---|

public void setParent(XMLReader![]()
![]()
parent)
This is the 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.
setParent

in interface XMLFilter

parent - The parent XML reader.getParent()


public XMLReader![]()
![]()
getParent()
getParent

in interface XMLFilter

setParent(org.xml.sax.XMLReader)


public void setFeature(String![]()
![]()
name, boolean value) throws SAXNotRecognizedException
![]()
![]()
, SAXNotSupportedException
![]()
![]()
This will always fail if the parent is null.
setFeature

in interface XMLReader

name - The feature name.value - The requested feature 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.XMLReader.getFeature(java.lang.String)


public boolean getFeature(String![]()
![]()
name) throws SAXNotRecognizedException
![]()
![]()
, SAXNotSupportedException
![]()
![]()
This will always fail if the parent is null.
getFeature

in interface XMLReader

name - The feature 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.XMLReader.setFeature(java.lang.String, boolean)


public void setProperty(String![]()
![]()
name, Object
![]()
![]()
value) throws SAXNotRecognizedException
![]()
![]()
, SAXNotSupportedException
![]()
![]()
This will always fail if the parent is null.
setProperty

in interface XMLReader

name - The property name.value - The requested property 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