anl.aida.reader
Class ProMedTxtReader.TitleParser

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

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


Field Summary
private  java.lang.StringBuilder title
           
 
Constructor Summary
private ProMedTxtReader.TitleParser()
           
 
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
 

Field Detail

title

private java.lang.StringBuilder title
Constructor Detail

ProMedTxtReader.TitleParser

private ProMedTxtReader.TitleParser()
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.