|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.parser.xmlHandler.LastFMUserExpansion
public class LastFMUserExpansion
Class for setting up a set of parsers for crawling LastFM or reading XML files downloaded from LastFM. Also is the object responsible for crawling all the files associated with a LastFM username.
| Constructor Summary | |
|---|---|
LastFMUserExpansion()
|
|
| Method Summary | |
|---|---|
static void |
blockUsername(java.lang.String userName)
Prevent the given username from being exapnded |
void |
expandUser(Crawler crawler,
java.lang.String username)
Takes the given username and schedules the parsing of LastFM using this information if this username has not already been scheduled for download or blocked. |
Parser[] |
setUpParsers(java.io.File toFileDirectory,
Graph graph)
Create the set of parsers for a crawler to parse. |
Parser[] |
setUpParsers(java.io.File toFileDirectory,
Graph graph,
java.lang.String[] parserNames)
Create the set of parsers for a crawler to parse. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LastFMUserExpansion()
| Method Detail |
|---|
public static void blockUsername(java.lang.String userName)
userName - name to not parse
public Parser[] setUpParsers(java.io.File toFileDirectory,
Graph graph)
toFileDirectory - location to store files or null if no files are to be storedgraph - graph to be used for holding the data generated by the parsers
public Parser[] setUpParsers(java.io.File toFileDirectory,
Graph graph,
java.lang.String[] parserNames)
toFileDirectory - location to store files or null if no files are to be storedgraph - graph to be used for holding the data generated by the parsersparserNames - names to use for each of the parsers.
public void expandUser(Crawler crawler,
java.lang.String username)
throws java.net.MalformedURLException,
java.io.IOException
crawler - crawler for parsing LastFMusername - user whose LastFM data is to be downloaded
java.net.MalformedURLException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||