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

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

public class NullParser
extends AbstractParser

Intentionally a do-nothing parser.


Field Summary
 java.lang.String content
           
 
Constructor Summary
NullParser()
          Creates a new instance of NullParser
 
Method Summary
 Parser duplicate()
          Create an exact copy of this object
 ParsedObject get()
          Intentionally a no-op
 void parse(java.io.InputStream data, Crawler crawler, Properties site)
          Identical to parse
 void parse(java.io.InputStream data, Properties site)
          Reads the content into a String, otherwise a no-op
 void set(ParsedObject o)
          Intentionally a no-op
 
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
 

Field Detail

content

public java.lang.String content
Constructor Detail

NullParser

public NullParser()
Creates a new instance of NullParser

Method Detail

parse

public void parse(java.io.InputStream data,
                  Properties site)
Reads the content into a String, otherwise a no-op

Specified by:
parse in interface Parser
Specified by:
parse in class AbstractParser
Parameters:
data - read into a string

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

Specified by:
parse in interface Parser
Specified by:
parse in class AbstractParser
Parameters:
data - read into string
crawler - ignored

get

public ParsedObject get()
Intentionally a no-op

Specified by:
get in interface Parser
Specified by:
get in class AbstractParser
Returns:
null

set

public void set(ParsedObject o)
Intentionally a no-op

Specified by:
set in interface Parser
Specified by:
set in class AbstractParser
Parameters:
o - ignored

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