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

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

public class LastFmBasicArtistParser
extends java.lang.Object
implements Parser

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
 java.lang.String getName()
           
 void parse(java.io.InputStream data)
          Parse an input stream into its components
 void parse(java.io.InputStream data, Crawler crawler)
          Identical to parse without crawler
 void set(ParsedObject o)
          Set the parsed object to be loaded
 void setName(java.lang.String name)
          Give this parser an id that should be globally unique
 
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)
Description copied from interface: Parser
Parse an input stream into its components

Specified by:
parse in interface Parser
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
Returns:
new Parser object

parse

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

Specified by:
parse in interface Parser
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
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
Parameters:
o - object to be loaded

setName

public void setName(java.lang.String name)
Description copied from interface: Parser
Give this parser an id that should be globally unique

Specified by:
setName in interface Parser
Parameters:
name - id for this parser

getName

public java.lang.String getName()
Specified by:
getName in interface Parser