nz.ac.waikato.mcennis.rat.parser
Class LastFmBasicArtistParser

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.parser.AbstractParser
      extended by nz.ac.waikato.mcennis.rat.parser.LastFmBasicArtistParser
All Implemented Interfaces:
Parser

public class LastFmBasicArtistParser
extends AbstractParser

Class for parsing actor biographies on LastFM. NOTE: Use with caution. Contact the LastFM webiste owners for permission first.


Constructor Summary
LastFmBasicArtistParser()
          Creates a new instance of ArtistParser
 
Method Summary
 Parser duplicate()
          Create an exact copy of this object
 ParsedObject get()
          Get the object created by this parser
 void parse(java.io.InputStream data, Crawler crawler, Properties site)
          Identical to parse without crawler
 void parse(java.io.InputStream data, Properties site)
          Parse an input stream into its components
 void set(ParsedObject o)
          Set the parsed object to be loaded
 
Methods inherited from class nz.ac.waikato.mcennis.rat.parser.AbstractParser
check, check, getName, getParameter, getParameter, init, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastFmBasicArtistParser

public LastFmBasicArtistParser()
Creates a new instance of ArtistParser

Method Detail

parse

public void parse(java.io.InputStream data,
                  Properties site)
Description copied from interface: Parser
Parse an input stream into its components

Specified by:
parse in interface Parser
Specified by:
parse in class AbstractParser
Parameters:
data - data stream to be read

duplicate

public Parser duplicate()
Description copied from interface: Parser
Create an exact copy of this object

Specified by:
duplicate in interface Parser
Specified by:
duplicate in class AbstractParser
Returns:
new Parser object

parse

public void parse(java.io.InputStream data,
                  Crawler crawler,
                  Properties site)
Identical to parse without crawler

Specified by:
parse in interface Parser
Specified by:
parse in class AbstractParser
Parameters:
data - data to be parsed
crawler - ignored

get

public ParsedObject get()
Description copied from interface: Parser
Get the object created by this parser

Specified by:
get in interface Parser
Specified by:
get in class AbstractParser
Returns:
parsed object

set

public void set(ParsedObject o)
Description copied from interface: Parser
Set the parsed object to be loaded

Specified by:
set in interface Parser
Specified by:
set in class AbstractParser
Parameters:
o - object to be loaded

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads