|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
nz.ac.waikato.mcennis.rat.parser.xmlHandler.Handler
nz.ac.waikato.mcennis.rat.parser.xmlHandler.LastFMFriends
public class LastFMFriends
Parse the Friends XML file from LastFM. See audioscrobbler.net for a description of the file format. Usually obtained from the CrawlLastFM data aquisition module. Contains all LastFM users that this person has declared to be their friend.
Field Summary |
---|
Fields inherited from class nz.ac.waikato.mcennis.rat.parser.xmlHandler.Handler |
---|
properties, site |
Constructor Summary | |
---|---|
LastFMFriends()
|
Method Summary | |
---|---|
Handler |
duplicate()
Create a complete duplicate of this class |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
ParsedObject |
get()
Return the underlying parsed object |
void |
set(ParsedObject o)
Set the underlying parsed object for parsing |
void |
setCrawler(Crawler crawler)
Set the crawler to be used for spidering new pages |
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
setExpansion(LastFMUserExpansion expansion)
Set the reference to the object that handles setting up the crawling of new users using LastFM webservices. |
void |
setParser(ToFileParser parser)
Set where the ToFileParser will store files parsed by this parser. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
Methods inherited from class nz.ac.waikato.mcennis.rat.parser.xmlHandler.Handler |
---|
check, check, error, fatalError, getName, getParameter, getParameter, init, setName, setProperties, warning |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LastFMFriends()
Method Detail |
---|
public void setParser(ToFileParser parser)
parser
- reference to ToFileParser to use.public ParsedObject get()
Handler
get
in class Handler
public void set(ParsedObject o)
Handler
set
in class Handler
o
- underlying parsed objectpublic Handler duplicate()
Handler
duplicate
in class Handler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
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
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void setCrawler(Crawler crawler)
Handler
setCrawler
in class Handler
crawler
- crawler to be parsing.public void setExpansion(LastFMUserExpansion expansion)
expansion
- object to handle crawling of userspublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |