anl.aida.reader
Class ProMedTxtReader.ContentParser

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

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


Constructor Summary
private ProMedTxtReader.ContentParser()
           
 
Method Summary
protected  boolean isEndTag(java.lang.String line)
           
 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.ContentParser

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

isEndTag

protected boolean isEndTag(java.lang.String line)