|
demo for SASAX - 1.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jp.ne.dti.lares.foozy.sasax.AbstractElement | +--jp.ne.dti.lares.foozy.sasax.PathDemo
Demonstration how to use path extension of SASAX.
This class can parse all (well-formed) XML document, and print "path" on each "startElement".
This class reads XML document in from standard input
at invocation of main(String[])
.
Constructor Summary | |
PathDemo(Element parent)
|
Method Summary | |
boolean |
accepts(ParseContext context,
java.lang.String uri,
java.lang.String lName)
Accept any elements. |
Element |
characters(ParseContext context,
char[] chars,
int offset,
int length)
Receive notification of character data. |
Element |
endElement(ParseContext context,
java.lang.String uri,
java.lang.String lName)
|
static void |
main(java.lang.String[] args)
Invoke demonstration. |
Element |
processingInstruction(ParseContext context,
java.lang.String target,
java.lang.String data)
Receive notification of ignorable whitespace in element content. |
Element |
skippedEntity(ParseContext context,
java.lang.String name)
Receive notification of a processing instruction. |
Element |
startElement(ParseContext context,
java.lang.String uri,
java.lang.String lName,
org.xml.sax.Attributes attrs)
|
Methods inherited from class jp.ne.dti.lares.foozy.sasax.AbstractElement |
addCleanup, addNotification, clear, ensureDetermined, fireElementStarted, getAttribute, getParent, hasNotification, hasXSINil, ignorableWhitespace, isDetermined, notifyDetermined, notifyDetermined, removeNotification, setDetermined, unwatchAttribute, watchAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PathDemo(Element parent)
Method Detail |
public boolean accepts(ParseContext context, java.lang.String uri, java.lang.String lName)
accepts
in class AbstractElement
public Element startElement(ParseContext context, java.lang.String uri, java.lang.String lName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in class AbstractElement
public Element endElement(ParseContext context, java.lang.String uri, java.lang.String lName) throws org.xml.sax.SAXException
endElement
in class AbstractElement
public Element characters(ParseContext context, char[] chars, int offset, int length) throws org.xml.sax.SAXException
This prevents base class from throwing SAXException.
characters
in class AbstractElement
public Element processingInstruction(ParseContext context, java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
This prevents base class from throwing SAXException.
processingInstruction
in class AbstractElement
public Element skippedEntity(ParseContext context, java.lang.String name) throws org.xml.sax.SAXException
This prevents base class from throwing SAXException.
skippedEntity
in class AbstractElement
public static void main(java.lang.String[] args) throws java.lang.Exception
|
demo for SASAX - 1.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |