|
void | warning (SAXParseException e) throws SAXException |
|
void | error (SAXParseException e) throws SAXException |
|
void | fatalError (SAXParseException e) throws SAXException |
|
void | setDocumentLocator (Locator locator) |
|
void | startDocument () throws SAXException |
|
void | endDocument () throws SAXException |
|
void | startPrefixMapping (CharArray prefix, CharArray uri) throws SAXException |
|
void | endPrefixMapping (CharArray prefix) throws SAXException |
|
void | startElement (CharArray namespaceURI, CharArray localName, CharArray qName, Attributes atts) throws SAXException |
|
void | endElement (CharArray namespaceURI, CharArray localName, CharArray qName) throws SAXException |
|
void | characters (char ch[], int start, int length) throws SAXException |
|
void | ignorableWhitespace (char ch[], int start, int length) throws SAXException |
|
void | processingInstruction (CharArray target, CharArray data) throws SAXException |
|
void | skippedEntity (CharArray name) throws SAXException |
|
Default base class for real-time handling of XML events.
- Author
- David Megginson
-
Jean-Marie Dautelle
- Version
- 3.1, March 11, 2005
Definition at line 24 of file DefaultHandler.java.
◆ characters()
void javolution.xml.sax.DefaultHandler.characters |
( |
char |
ch[], |
|
|
int |
start, |
|
|
int |
length |
|
) |
| throws SAXException |
Receives notification of character data.
- Parameters
-
ch | the characters from the XML document. |
start | the start position in the array. |
length | the number of characters to read from the array. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 80 of file DefaultHandler.java.
◆ endDocument()
void javolution.xml.sax.DefaultHandler.endDocument |
( |
| ) |
throws SAXException |
◆ endElement()
Receives notification of the end of an element.
- Parameters
-
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. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 76 of file DefaultHandler.java.
◆ endPrefixMapping()
void javolution.xml.sax.DefaultHandler.endPrefixMapping |
( |
CharArray |
prefix | ) |
throws SAXException |
◆ error()
void javolution.xml.sax.DefaultHandler.error |
( |
SAXParseException |
e | ) |
throws SAXException |
Receives notification of recoverable parser error. The default behaviour is to take no action.
- Parameters
-
e | the error information encapsulated in a SAX parse exception. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Definition at line 42 of file DefaultHandler.java.
◆ fatalError()
void javolution.xml.sax.DefaultHandler.fatalError |
( |
SAXParseException |
e | ) |
throws SAXException |
Reports a fatal XML parsing error. The default behaviour is to throw the specified exception.
- Parameters
-
e | the error information encapsulated in a SAX parse exception. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Definition at line 51 of file DefaultHandler.java.
◆ ignorableWhitespace()
void javolution.xml.sax.DefaultHandler.ignorableWhitespace |
( |
char |
ch[], |
|
|
int |
start, |
|
|
int |
length |
|
) |
| throws SAXException |
Receives notification of ignorable whitespace in element content.
- Parameters
-
ch | the characters from the XML document. |
start | the start position in the array. |
length | the number of characters to read from the array. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 84 of file DefaultHandler.java.
◆ processingInstruction()
void javolution.xml.sax.DefaultHandler.processingInstruction |
( |
CharArray |
target, |
|
|
CharArray |
data |
|
) |
| throws SAXException |
Receives notification of a processing instruction.
- Parameters
-
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. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 88 of file DefaultHandler.java.
◆ setDocumentLocator()
void javolution.xml.sax.DefaultHandler.setDocumentLocator |
( |
Locator |
locator | ) |
|
◆ skippedEntity()
void javolution.xml.sax.DefaultHandler.skippedEntity |
( |
CharArray |
name | ) |
throws SAXException |
Receives notification of a skipped entity.
- Parameters
-
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]". |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 92 of file DefaultHandler.java.
◆ startDocument()
void javolution.xml.sax.DefaultHandler.startDocument |
( |
| ) |
throws SAXException |
◆ startElement() [1/2]
Receives notification of the beginning of an element.
- Parameters
-
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. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 72 of file DefaultHandler.java.
◆ startElement() [2/2]
final void javolution.xml.sax.DefaultHandler.startElement |
( |
CharArray |
uri, |
|
|
CharArray |
localName, |
|
|
CharArray |
qName, |
|
|
org.xml.sax.Attributes |
atts |
|
) |
| throws SAXException |
|
protected |
Generates compile-time error if startElement
is not correctly overriden. This method generates a compile-error "final method cannot be overridden"
if org.xml.sax.Attributes
is used instead of javolution.xml.sax.Attributes
(common mistake).
- Parameters
-
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. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Definition at line 111 of file DefaultHandler.java.
113 throw new UnsupportedOperationException();
◆ startPrefixMapping()
void javolution.xml.sax.DefaultHandler.startPrefixMapping |
( |
CharArray |
prefix, |
|
|
CharArray |
uri |
|
) |
| throws SAXException |
Begins the scope of a prefix-URI Namespace mapping.
- Parameters
-
prefix | the Namespace prefix being declared. |
uri | the namespace URI the prefix is mapped to. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 65 of file DefaultHandler.java.
◆ warning()
void javolution.xml.sax.DefaultHandler.warning |
( |
SAXParseException |
e | ) |
throws SAXException |
Receives notification of a warning. The default behaviour is to take no action.
- Parameters
-
e | the warning information encapsulated in a SAX parse exception. |
- Exceptions
-
org.xml.sax.SAXException | any SAX exception. |
Definition at line 33 of file DefaultHandler.java.
The documentation for this class was generated from the following file: