Javolution 6.0.0 java
javolution.xml.sax.DefaultHandler Class Reference
Inheritance diagram for javolution.xml.sax.DefaultHandler:
[legend]
Collaboration diagram for javolution.xml.sax.DefaultHandler:
[legend]

Public Member Functions

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
 

Protected Member Functions

final void startElement (CharArray uri, CharArray localName, CharArray qName, org.xml.sax.Attributes atts) throws SAXException
 

Detailed Description

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.

Member Function Documentation

◆ characters()

void javolution.xml.sax.DefaultHandler.characters ( char  ch[],
int  start,
int  length 
) throws SAXException

Receives notification of character data.

Parameters
chthe characters from the XML document.
startthe start position in the array.
lengththe number of characters to read from the array.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 80 of file DefaultHandler.java.

81  {}

◆ endDocument()

void javolution.xml.sax.DefaultHandler.endDocument ( ) throws SAXException

Receives notification of the end of a document.

Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 62 of file DefaultHandler.java.

62 {}

◆ endElement()

void javolution.xml.sax.DefaultHandler.endElement ( CharArray  uri,
CharArray  localName,
CharArray  qName 
) throws SAXException

Receives notification of the end of an element.

Parameters
urithe namespace URI, or an empty character sequence if the element has no Namespace URI or if namespace processing is not being performed.
localNamethe local name (without prefix), or an empty character sequence if namespace processing is not being performed.
qNamethe qualified XML 1.0 name (with prefix), or an empty character sequence if qualified names are not available.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 76 of file DefaultHandler.java.

77  {}

◆ endPrefixMapping()

void javolution.xml.sax.DefaultHandler.endPrefixMapping ( CharArray  prefix) throws SAXException

Ends the scope of a prefix-URI mapping.

Parameters
prefixthe prefix that was being mapping.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 69 of file DefaultHandler.java.

69 {}

◆ 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
ethe error information encapsulated in a SAX parse exception.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Definition at line 42 of file DefaultHandler.java.

42 {}

◆ 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
ethe error information encapsulated in a SAX parse exception.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Definition at line 51 of file DefaultHandler.java.

51  {
52  throw e;
53  }

◆ ignorableWhitespace()

void javolution.xml.sax.DefaultHandler.ignorableWhitespace ( char  ch[],
int  start,
int  length 
) throws SAXException

Receives notification of ignorable whitespace in element content.

Parameters
chthe characters from the XML document.
startthe start position in the array.
lengththe number of characters to read from the array.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 84 of file DefaultHandler.java.

85  {}

◆ processingInstruction()

void javolution.xml.sax.DefaultHandler.processingInstruction ( CharArray  target,
CharArray  data 
) throws SAXException

Receives notification of a processing instruction.

Parameters
targetthe processing instruction target.
datathe 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.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 88 of file DefaultHandler.java.

89  {}

◆ setDocumentLocator()

void javolution.xml.sax.DefaultHandler.setDocumentLocator ( Locator  locator)

Receives an object for locating the origin of SAX document events.

Parameters
locatorthe document locator.

Implements javolution.xml.sax.ContentHandler.

Definition at line 56 of file DefaultHandler.java.

56 {}

◆ skippedEntity()

void javolution.xml.sax.DefaultHandler.skippedEntity ( CharArray  name) throws SAXException

Receives notification of a skipped entity.

Parameters
namethe 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.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 92 of file DefaultHandler.java.

92 {}

◆ startDocument()

void javolution.xml.sax.DefaultHandler.startDocument ( ) throws SAXException

Receives notification of the beginning of a document.

Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 59 of file DefaultHandler.java.

59 {}

◆ startElement() [1/2]

void javolution.xml.sax.DefaultHandler.startElement ( CharArray  uri,
CharArray  localName,
CharArray  qName,
Attributes  atts 
) throws SAXException

Receives notification of the beginning of an element.

Parameters
urithe namespace URI, or an empty character sequence if the element has no Namespace URI or if namespace processing is not being performed.
localNamethe local name (without prefix), or an empty character sequence if namespace processing is not being performed.
qNamethe qualified name (with prefix), or an empty character sequence if qualified names are not available.
attsthe attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 72 of file DefaultHandler.java.

73  {}

◆ 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
urithe namespace URI, or an empty character sequence if the element has no Namespace URI or if namespace processing is not being performed.
localNamethe local name (without prefix), or an empty character sequence if namespace processing is not being performed.
qNamethe qualified name (with prefix), or an empty character sequence if qualified names are not available.
attsthe attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Definition at line 111 of file DefaultHandler.java.

112  {
113  throw new UnsupportedOperationException();
114  }

◆ startPrefixMapping()

void javolution.xml.sax.DefaultHandler.startPrefixMapping ( CharArray  prefix,
CharArray  uri 
) throws SAXException

Begins the scope of a prefix-URI Namespace mapping.

Parameters
prefixthe Namespace prefix being declared.
urithe namespace URI the prefix is mapped to.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Implements javolution.xml.sax.ContentHandler.

Definition at line 65 of file DefaultHandler.java.

66  {}

◆ 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
ethe warning information encapsulated in a SAX parse exception.
Exceptions
org.xml.sax.SAXExceptionany SAX exception.

Definition at line 33 of file DefaultHandler.java.

33 {}

The documentation for this class was generated from the following file: