ipipan.spejd.readers
Class Reader

java.lang.Object
  extended by ipipan.spejd.readers.Reader
Direct Known Subclasses:
MorphReader, PlainTextReader, WorkbenchReader

public abstract class Reader
extends java.lang.Object


Constructor Summary
Reader()
           
 
Method Summary
abstract  Entity loadToken()
          Get the next token from the input.
abstract  boolean nextSentence(java.io.PrintStream out)
          Move on to the next sentence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reader

public Reader()
Method Detail

loadToken

public abstract Entity loadToken()
Get the next token from the input.

Returns:
segment or no space, null if end of sentence or file

nextSentence

public abstract boolean nextSentence(java.io.PrintStream out)
Move on to the next sentence.

Parameters:
out - result file
Returns:
true if there exists a next sentence