|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.webmancer.util.xml.sax.DelegateContentHandler
public class DelegateContentHandler
This is the ContentHandler
implementation that simply delegates all SAX parsing events to the
target ContentHandler
that may be set at any time by the
setTargetContentHandler(ContentHandler)
method. If the target ContentHandler
is set to
null
, the content handler simply does nothing.
Constructor Summary | |
---|---|
DelegateContentHandler()
Convenient constructor that creates new delegate content handler with target content handler set to null . |
|
DelegateContentHandler(org.xml.sax.ContentHandler handler)
Create new delegate content handler. |
Method Summary | |
---|---|
void |
endDocument()
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
void |
endPrefixMapping(java.lang.String prefix)
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
org.xml.sax.ContentHandler |
getTargetContentHandler()
Get the actually used target content handler. |
void |
characters(char[] ch,
int start,
int length)
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
void |
setTargetContentHandler(org.xml.sax.ContentHandler handler)
Set the target content handler. |
void |
skippedEntity(java.lang.String name)
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
void |
startDocument()
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Delegates the SAX event to the target content handler or simply does nothing, if the target content handler is null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegateContentHandler(org.xml.sax.ContentHandler handler)
handler
- The possibly null
target content handlerpublic DelegateContentHandler()
null
.
Method Detail |
---|
public void setTargetContentHandler(org.xml.sax.ContentHandler handler)
ContentHandler
is set to null
, the content handler would simply do nothing.
handler
- The target content handlerpublic org.xml.sax.ContentHandler getTargetContentHandler()
public void startDocument() throws org.xml.sax.SAXException
null
.
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.startDocument()
public void endDocument() throws org.xml.sax.SAXException
null
.
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.endDocument()
public void setDocumentLocator(org.xml.sax.Locator locator)
null
.
setDocumentLocator
in interface org.xml.sax.ContentHandler
setTargetContentHandler(ContentHandler)
,
ContentHandler.setDocumentLocator(org.xml.sax.Locator)
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
null
.
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
null
.
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.endPrefixMapping(java.lang.String)
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
null
.
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.characters(char[], int, int)
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
null
.
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.ignorableWhitespace(char[], int, int)
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
null
.
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.processingInstruction(java.lang.String, java.lang.String)
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
null
.
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.skippedEntity(java.lang.String)
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
null
.
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String,
org.xml.sax.Attributes)
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
null
.
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
setTargetContentHandler(ContentHandler)
,
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |