anl.aida.reader
Class ProMedTxtReader.NullParser

java.lang.Object
  extended by anl.aida.reader.ProMedTxtReader.NullParser
All Implemented Interfaces:
LineParser
Enclosing class:
ProMedTxtReader

private class ProMedTxtReader.NullParser
extends java.lang.Object
implements LineParser


Constructor Summary
private ProMedTxtReader.NullParser()
           
 
Method Summary
 LineParser next()
          Returns the next LineParser in the chain.
 boolean parse(java.lang.String line, java.lang.StringBuilder buf)
          Parses the specified line of text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProMedTxtReader.NullParser

private ProMedTxtReader.NullParser()
Method Detail

next

public LineParser next()
Description copied from interface: LineParser
Returns the next LineParser in the chain.

Specified by:
next in interface LineParser
Returns:
the next LineParser in the chain.

parse

public boolean parse(java.lang.String line,
                     java.lang.StringBuilder buf)
Description copied from interface: LineParser
Parses the specified line of text. The StringBuilder should accumulate the documents true content in contrast to any metadata that might be parsed such as the date and so forth.

Specified by:
parse in interface LineParser
Parameters:
line - the line of text to parse
buf - the buffer to put the actual content in
Returns:
true if next() should be called, otherwise false.