|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> asaph >> [ xmldatabase overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.virtuosotechnologies.asaph.xmldatabase
Class IndexedSongDatabase.IndexXMLHandler

java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.virtuosotechnologies.asaph.xmldatabase.IndexedSongDatabase.IndexXMLHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- Enclosing class:
- IndexedSongDatabase
- class IndexedSongDatabase.IndexXMLHandler
- extends org.xml.sax.helpers.DefaultHandler
DefaultHandler for initial loading of the index file
| Field Summary | |
private java.lang.StringBuffer |
buffer_
|
private IndexedSongDatabase.SongInfoCache |
curSong_
|
private java.lang.String |
dtdString_
|
private org.xml.sax.ErrorHandler |
errorHandler_
|
private java.util.List |
list_
|
private org.xml.sax.Locator |
locator_
|
private java.lang.String |
state_
|
| Constructor Summary | |
(package private) |
IndexedSongDatabase.IndexXMLHandler(java.lang.String dtdString,
org.xml.sax.ErrorHandler errorHandler)
|
| Method Summary | |
void |
characters(char[] chs,
int start,
int length)
Receive notification of character data inside an element. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element. |
void |
error(org.xml.sax.SAXParseException ex)
Receive notification of a recoverable parser error. |
void |
fatalError(org.xml.sax.SAXParseException ex)
Report a fatal XML parsing error. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolve an external entity. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receive a Locator object for document events. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Receive notification of the start of an element. |
void |
warning(org.xml.sax.SAXParseException ex)
Receive notification of a parser warning. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
errorHandler_
private org.xml.sax.ErrorHandler errorHandler_
locator_
private org.xml.sax.Locator locator_
dtdString_
private java.lang.String dtdString_
curSong_
private IndexedSongDatabase.SongInfoCache curSong_
state_
private java.lang.String state_
buffer_
private java.lang.StringBuffer buffer_
list_
private java.util.List list_
| Constructor Detail |
IndexedSongDatabase.IndexXMLHandler
IndexedSongDatabase.IndexXMLHandler(java.lang.String dtdString, org.xml.sax.ErrorHandler errorHandler)
| Method Detail |
startElement
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Receive notification of the start of an element.
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Receive notification of the end of an element.
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
characters
public void characters(char[] chs,
int start,
int length)
throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Receive notification of character data inside an element.
By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Resolve an external entity.
Always return null, so that the parser will use the system identifier provided in the XML document. This method implements the SAX default behaviour: application writers can override it in a subclass to do special translations such as catalog lookups or URI redirection.
error
public void error(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Receive notification of a recoverable parser error.
The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each error, such as inserting the message in a log file or printing it to the console.
fatalError
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Report a fatal XML parsing error.
The default implementation throws a SAXParseException. Application writers may override this method in a subclass if they need to take specific actions for each fatal error (such as collecting all of the errors into a single report): in any case, the application must stop all regular processing when this method is invoked, since the document is no longer reliable, and the parser may no longer report parsing events.
warning
public void warning(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Receive notification of a parser warning.
The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each warning, such as inserting the message in a log file or printing it to the console.
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Receive a Locator object for document events.
By default, do nothing. Application writers may override this method in a subclass if they wish to store the locator for use with other document events.
|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> asaph >> [ xmldatabase overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC