|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler com.cutunes.client.ItunesXMLParser
Extends the SAX DefaultHandler to correctly parse iTunes XML files in the Apple plist DTD format. Parses and extracts all track information (song name, album, artist, year, playcount, last play date, etc) placed information in a Hashtable which is then passed back to the ClientCommuniciator. When I sufficient number of song Hashtables have been queued in the ClientCommunicator, they are sent to the server.
Constructor Summary | |
ItunesXMLParser()
|
Method Summary | |
void |
characters(char[] buf,
int offset,
int len)
SAX DocumentHandler method for XML element characters. |
void |
endDocument()
SAX DocumentHandler method for document end. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
SAX DocumentHandler method for XML element end. |
void |
startDocument()
SAX DocumentHandler method for document start. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
SAX DocumentHandler method for XML element start. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ItunesXMLParser()
Method Detail |
public void startDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void characters(char[] buf, int offset, int len) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |