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

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

public class GoogleArtistParser
extends java.lang.Object
implements Parser

Class for parsing the Google music artist search engine results. Returns null or not null Actor.


Constructor Summary
GoogleArtistParser()
          Creates a new instance of GoogleArtistHandler
 
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 normal parse - no spidering occuring
 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

GoogleArtistParser

public GoogleArtistParser()
Creates a new instance of GoogleArtistHandler

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 normal parse - no spidering occuring

Specified by:
parse in interface Parser
Parameters:
data - data stream to be read
crawler - ignored

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