|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XmlActor
Handles parsing events from an XMLParser.
These methods directly correlate to those in
ContentHandler. This is primarily intended to be a
simplified version of that interface. It does not handle such advanced XML
trickery as namespaces, external entities, etc. It automatically combines
character data for you and presents it as a string; this has the unfortunate
side effect of limiting character data to 65535 characters (the maximum size
of a Java String). If you need something more sophisticated, by all means
just use the org.xml.sax framework directly.
Most methods allow you to throw any exception you like; these are then wrapped as SAXExceptions, which are logged by the XMLParser and cause parsing to halt.
Copyright 2006 Partner Software, Inc.
| Method Summary | |
|---|---|
void |
endElement(java.lang.String name,
java.lang.String characterData)
Called when a closing tag is encounterd, ending an element. |
void |
startElement(java.lang.String name,
org.xml.sax.Attributes attributes)
Called when an opening tag is encountered, starting an element. |
| Method Detail |
|---|
void startElement(java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
name - qName of elementattributes - attributes listed in the tag
java.lang.Exception - if anything bad happens (this stops the parsing)
void endElement(java.lang.String name,
java.lang.String characterData)
throws java.lang.Exception
name - qName of elementcharacterData - any character data encountered
java.lang.Exception - if anything bad happens (this stops the parsing)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||