|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.xml.TagReader
public class TagReader
Handles the operations necessary to create an object for the associated tag type.
Constructor Summary | |
---|---|
TagReader()
|
Method Summary | |
---|---|
void |
tagEnd(java.lang.String tag,
java.lang.String text,
java.lang.Object parent,
java.lang.Object tagObject)
Performs any operations necessary to close a tag. |
java.lang.Object |
tagStart(java.lang.String tag,
org.xml.sax.Attributes atts,
java.lang.Object parent)
Called at the beginning of a tag so that the initial tag object can be created. |
void |
tagText(java.lang.String tag,
java.lang.String text,
java.lang.StringBuffer buffer,
java.lang.Object parent,
java.lang.Object tagObject)
Called when a new section of text is parsed from the body of the tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagReader()
Method Detail |
---|
public java.lang.Object tagStart(java.lang.String tag, org.xml.sax.Attributes atts, java.lang.Object parent) throws XmlException
tag
- The name of the processed tag.atts
- The attribute list for the tag.parent
- The object within which this tag is nested.
XmlException
public void tagText(java.lang.String tag, java.lang.String text, java.lang.StringBuffer buffer, java.lang.Object parent, java.lang.Object tagObject) throws XmlException
tag
- The name of the tag being processed.text
- The new text that was read.buffer
- A buffer that can be used to accumulate the processed text.parent
- The object within which this tag is nested.tagObject
- The object created in the tagStart method.
XmlException
public void tagEnd(java.lang.String tag, java.lang.String text, java.lang.Object parent, java.lang.Object tagObject) throws XmlException
tag
- The name of the processed tag.text
- The text accumulated in the tag body.parent
- The object within which this tag is nested.tagObject
- The object created in the tagStart method.
XmlException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |