|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.FilterContentHandler
This is a ContentHandler that fires SAX events it receives into a second ContentHandler, the parent handler.
The FilterContentHandler is not really useful by itself, it is mainly designed for being subclasses. Concrete subclasses will typically modify the SAX event stream.
Constructor Summary | |
FilterContentHandler()
Creates a new FilterContentHandler instance without parent handler. |
|
FilterContentHandler(org.xml.sax.ContentHandler pParentHandler)
Creates a new FilterContentHandler instance with the given parent handler. |
Method Summary | |
void |
characters(char[] pChars,
int pStart,
int pLen)
|
void |
endDocument()
|
void |
endElement(java.lang.String pNamespaceURI,
java.lang.String pLocalName,
java.lang.String pQName)
|
void |
endPrefixMapping(java.lang.String pPrefix)
|
org.xml.sax.ContentHandler |
getParentHandler()
Returns the parent handler. |
void |
ignorableWhitespace(char[] pChars,
int pStart,
int pLen)
|
void |
processingInstruction(java.lang.String pTarget,
java.lang.String pData)
|
void |
setDocumentLocator(org.xml.sax.Locator pLocator)
|
void |
setParentHandler(org.xml.sax.ContentHandler pParentHandler)
Sets the parent handler. |
void |
skippedEntity(java.lang.String pEntity)
|
void |
startDocument()
|
void |
startElement(java.lang.String pNamespaceURI,
java.lang.String pLocalName,
java.lang.String pQName,
org.xml.sax.Attributes pAttr)
|
void |
startPrefixMapping(java.lang.String pNamespaceURI,
java.lang.String pPrefix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilterContentHandler()
Creates a new FilterContentHandler instance
without parent handler. SAX events will be
silently discarded until a parent handler is
set with setParentHandler()
.
public FilterContentHandler(org.xml.sax.ContentHandler pParentHandler)
Creates a new FilterContentHandler instance with the given parent handler. SAX events will be forwarded to the parent handler, possibly transformed by creating qualified names.
Method Detail |
public void setParentHandler(org.xml.sax.ContentHandler pParentHandler)
Sets the parent handler.
pParentHandler
- The parent handler that should receive
forwarded SAX events or null to disable SAX event forwarding.public org.xml.sax.ContentHandler getParentHandler()
Returns the parent handler.
public void setDocumentLocator(org.xml.sax.Locator pLocator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pQName, org.xml.sax.Attributes pAttr) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] pChars, int pStart, int pLen) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pQName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void skippedEntity(java.lang.String pEntity) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String pTarget, java.lang.String pData) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String pPrefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String pNamespaceURI, java.lang.String pPrefix) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void characters(char[] pChars, int pStart, int pLen) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |