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

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

public class ParseArtistList
extends java.lang.Object
implements Parser

Class for parsing a newline-deliminated list of artists into an artist decider


Constructor Summary
ParseArtistList()
          Creates a new instance of ParseArtistList
 
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
 void set(ParsedObject o)
          Set the parsed object to be loaded
 void setDecider(ArtistDecider d)
          Sets the decider 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

ParseArtistList

public ParseArtistList()
Creates a new instance of ParseArtistList

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

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

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

Specified by:
parse in interface Parser
Parameters:
data - read new line deliminated artist list
crawler - ignored

setDecider

public void setDecider(ArtistDecider d)
Sets the decider to be loaded

Parameters:
d - decider to be loaded

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