|
J avolution v5.2 (J2SE 1.5+) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ContentHandler
Receives notification of the logical content of a document.
It is a more efficient version of org.xml.sax.ContentHandler
with CharArray/CharSequence
instead of the String to avoid forcing dynamic object
allocations.
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Receives notification of character data. |
void |
endDocument()
Receives notification of the end of a document. |
void |
endElement(CharArray uri,
CharArray localName,
CharArray qName)
Receives notification of the end of an element. |
void |
endPrefixMapping(CharArray prefix)
Ends the scope of a prefix-URI mapping. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receives notification of ignorable whitespace in element content. |
void |
processingInstruction(CharArray target,
CharArray data)
Receives notification of a processing instruction. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receives an object for locating the origin of SAX document events. |
void |
skippedEntity(CharArray name)
Receives notification of a skipped entity. |
void |
startDocument()
Receives notification of the beginning of a document. |
void |
startElement(CharArray uri,
CharArray localName,
CharArray qName,
Attributes atts)
Receives notification of the beginning of an element. |
void |
startPrefixMapping(CharArray prefix,
CharArray uri)
Begins the scope of a prefix-URI Namespace mapping. |
| Method Detail |
|---|
void setDocumentLocator(org.xml.sax.Locator locator)
locator - the document locator.
void startDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXException - any SAX exception.
void endDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXException - any SAX exception.
void startPrefixMapping(CharArray prefix,
CharArray uri)
throws org.xml.sax.SAXException
prefix - the Namespace prefix being declared.uri - the namespace URI the prefix is mapped to.
org.xml.sax.SAXException - any SAX exception.
void endPrefixMapping(CharArray prefix)
throws org.xml.sax.SAXException
prefix - the prefix that was being mapping.
org.xml.sax.SAXException - any SAX exception.
void startElement(CharArray uri,
CharArray localName,
CharArray qName,
Attributes atts)
throws org.xml.sax.SAXException
uri - the namespace URI, or an empty character sequence if the
element has no Namespace URI or if namespace processing is not
being performed.localName - the local name (without prefix), or an empty character
sequence if namespace processing is not being performed.qName - the qualified name (with prefix), or an empty character
sequence if qualified names are not available.atts - the attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
org.xml.sax.SAXException - any SAX exception.
void endElement(CharArray uri,
CharArray localName,
CharArray qName)
throws org.xml.sax.SAXException
uri - the namespace URI, or an empty character sequence if the
element has no Namespace URI or if namespace processing is not
being performed.localName - the local name (without prefix), or an empty character
sequence if namespace processing is not being performed.qName - the qualified XML 1.0 name (with prefix), or an empty
character sequence if qualified names are not available.
org.xml.sax.SAXException - any SAX exception.
void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ch - the characters from the XML document.start - the start position in the array.length - the number of characters to read from the array.
org.xml.sax.SAXException - any SAX exception.
void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ch - the characters from the XML document.start - the start position in the array.length - the number of characters to read from the array.
org.xml.sax.SAXException - any SAX exception.
void processingInstruction(CharArray target,
CharArray data)
throws org.xml.sax.SAXException
target - the processing instruction target.data - the processing instruction data, or null if
none was supplied. The data does not include any
whitespace separating it from the target.
org.xml.sax.SAXException - any SAX exception.
void skippedEntity(CharArray name)
throws org.xml.sax.SAXException
name - the name of the skipped entity. If it is a
parameter entity, the name will begin with '%', and if
it is the external DTD subset, it will be the character sequence
"[dtd]".
org.xml.sax.SAXException - any SAX exception.
|
J avolution v5.2 (J2SE 1.5+) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||