|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
edu.mit.jverbnet.util.parse.MappedHandler<java.lang.String>
edu.mit.jverbnet.util.parse.CDataHandler
public class CDataHandler
A handler that transforms CDATA into a String.
| Field Summary |
|---|
| Fields inherited from class edu.mit.jverbnet.util.parse.MappedHandler |
|---|
messageIgnoringElementBlockExternal, messageMatcherIgnoreExternal, messageMatcherIgnoreInternal, messageParserNotSet, messageUnmappedElementBlockInternal, tagStack |
| Constructor Summary | |
|---|---|
CDataHandler(IHasParserHandler parent,
java.lang.String tag)
Creates a new CDATA handler with the specified parser, parent and tag. |
|
CDataHandler(java.lang.String tag)
Creates a new CDATA handler with the specified tag. |
|
CDataHandler(org.xml.sax.XMLReader parser,
org.xml.sax.ContentHandler parent,
java.lang.String tag)
Creates a new CDATA handler with the specified parser, parent and tag. |
|
CDataHandler(org.xml.sax.XMLReader parser,
java.lang.String tag)
Creates a new CDATA handler with the specified parser, parent and tag. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
protected void |
clearLocal()
Subclasses may override this method to add code to be invoked when MappedHandler.clear() is called. |
java.lang.String |
doGetElement()
If subclasses intend to use the MappedHandler.getElement() method, they should
override this method to provide the code that constructs the object
corresponding to the tagged block. |
| Methods inherited from class edu.mit.jverbnet.util.parse.MappedHandler |
|---|
checkParserSet, clear, endElement, endTaggedBlock, getDocumentLocator, getElement, getHandlerMappings, getParent, getParser, getTag, getTaggedBlockTasks, handleUnmappedEndElement, handleUnmappedStartElement, initHandlerMap, isInsideTaggedBlock, reportWarning, reportWarnings, setDocumentLocator, setParent, setParser, setReportWarnings, startElement, startTaggedBlock |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startPrefixMapping |
| Constructor Detail |
|---|
public CDataHandler(java.lang.String tag)
tag - the tag for the block that this handler handles; may not be
null, empty, or all whitespace.
java.lang.NullPointerException - if the specified tag is null
java.lang.IllegalArgumentException - if the specified tag is empty or all whitespace
public CDataHandler(org.xml.sax.XMLReader parser,
java.lang.String tag)
parser - the parser for this handler; may be nulltag - the tag for the block that this handler handles; may not be
null, empty, or all whitespace.
java.lang.NullPointerException - if the specified tag is null
java.lang.IllegalArgumentException - if the specified tag is empty or all whitespace
public CDataHandler(IHasParserHandler parent,
java.lang.String tag)
parent - this handler's parent; may be nulltag - the tag for the block that this handler handles; may not be
null, empty, or all whitespace.
java.lang.NullPointerException - if the specified tag is null
java.lang.IllegalArgumentException - if the specified tag is empty or all whitespace
public CDataHandler(org.xml.sax.XMLReader parser,
org.xml.sax.ContentHandler parent,
java.lang.String tag)
parser - the parser for this handler; may be nullparent - this handler's parent; may be nulltag - the tag for the block that this handler handles; may not be
null, empty, or all whitespace.
java.lang.NullPointerException - if the specified tag is null
java.lang.IllegalArgumentException - if the specified tag is empty or all whitespace| Method Detail |
|---|
protected void clearLocal()
MappedHandlerMappedHandler.clear() is called.
clearLocal in class MappedHandler<java.lang.String>
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic java.lang.String doGetElement()
MappedHandlerMappedHandler.getElement() method, they should
override this method to provide the code that constructs the object
corresponding to the tagged block.
doGetElement in class MappedHandler<java.lang.String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||