| javolution.xml.sax.ContentHandler
All known Subclasses: javolution.xml.sax.DefaultHandler,
ContentHandler | public interface ContentHandler (Code) | | Receives notification of the logical content of a document.
It is a more efficient version of org.xml.sax.ContentHandler
with
CharArray CharArray /
CharSequence CharSequence
instead of the String to avoid forcing dynamic object
allocations.
author: David Megginson author: Jean-Marie Dautelle version: 4.0, June 16, 2006 |
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.
Parameters: target - the processing instruction target. Parameters: data - the processing instruction data, or null ifnone was supplied. | void | setDocumentLocator(Locator locator) Receives an object for locating the origin of SAX document events. | void | skippedEntity(CharArray name) Receives notification of a skipped entity.
Parameters: name - the name of the 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.
Parameters: uri - the namespace URI, or an empty character sequence if theelement has no Namespace URI or if namespace processing is notbeing performed. Parameters: localName - the local name (without prefix), or an empty charactersequence if namespace processing is not being performed. Parameters: qName - the qualified name (with prefix), or an empty charactersequence if qualified names are not available. Parameters: atts - the attributes attached to the element. | void | startPrefixMapping(CharArray prefix, CharArray uri) Begins the scope of a prefix-URI Namespace mapping. |
characters | void characters(char ch, int start, int length) throws SAXException(Code) | | Receives notification of character data.
Parameters: ch - the characters from the XML document. Parameters: start - the start position in the array. Parameters: length - the number of characters to read from the array. throws: org.xml.sax.SAXException - any SAX exception. |
endElement | void endElement(CharArray uri, CharArray localName, CharArray qName) throws SAXException(Code) | | Receives notification of the end of an element.
Parameters: uri - the namespace URI, or an empty character sequence if theelement has no Namespace URI or if namespace processing is notbeing performed. Parameters: localName - the local name (without prefix), or an empty charactersequence if namespace processing is not being performed. Parameters: qName - the qualified XML 1.0 name (with prefix), or an emptycharacter sequence if qualified names are not available. throws: org.xml.sax.SAXException - any SAX exception. |
ignorableWhitespace | void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code) | | Receives notification of ignorable whitespace in element content.
Parameters: ch - the characters from the XML document. Parameters: start - the start position in the array. Parameters: length - the number of characters to read from the array. throws: org.xml.sax.SAXException - any SAX exception. |
processingInstruction | void processingInstruction(CharArray target, CharArray data) throws SAXException(Code) | | Receives notification of a processing instruction.
Parameters: target - the processing instruction target. Parameters: data - the processing instruction data, or null ifnone was supplied. The data does not include anywhitespace separating it from the target. throws: org.xml.sax.SAXException - any SAX exception. |
setDocumentLocator | void setDocumentLocator(Locator locator)(Code) | | Receives an object for locating the origin of SAX document events.
Parameters: locator - the document locator. |
skippedEntity | void skippedEntity(CharArray name) throws SAXException(Code) | | Receives notification of a skipped entity.
Parameters: name - the name of the skipped entity. If it is aparameter entity, the name will begin with '%', and ifit is the external DTD subset, it will be the character sequence"[dtd]". throws: org.xml.sax.SAXException - any SAX exception. |
startElement | void startElement(CharArray uri, CharArray localName, CharArray qName, Attributes atts) throws SAXException(Code) | | Receives notification of the beginning of an element.
Parameters: uri - the namespace URI, or an empty character sequence if theelement has no Namespace URI or if namespace processing is notbeing performed. Parameters: localName - the local name (without prefix), or an empty charactersequence if namespace processing is not being performed. Parameters: qName - the qualified name (with prefix), or an empty charactersequence if qualified names are not available. Parameters: atts - the attributes attached to the element. If there are noattributes, it shall be an empty Attributes object. throws: org.xml.sax.SAXException - any SAX exception. |
startPrefixMapping | void startPrefixMapping(CharArray prefix, CharArray uri) throws SAXException(Code) | | Begins the scope of a prefix-URI Namespace mapping.
Parameters: prefix - the Namespace prefix being declared. Parameters: uri - the namespace URI the prefix is mapped to. throws: org.xml.sax.SAXException - any SAX exception. |
|
|