public class PlainTextSentenceSource extends SentenceSource
Constructor and Description |
---|
PlainTextSentenceSource(InputStream textInput,
Language language) |
PlainTextSentenceSource(InputStream textInput,
Language language,
Pattern filter) |
Modifier and Type | Method and Description |
---|---|
String |
getSource() |
boolean |
hasNext() |
Sentence |
next()
Return the next sentence.
|
acceptSentence, remove, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
public PlainTextSentenceSource(InputStream textInput, Language language)
public PlainTextSentenceSource(InputStream textInput, Language language, Pattern filter)
public boolean hasNext()
hasNext
in interface Iterator<Sentence>
hasNext
in class SentenceSource
public Sentence next()
SentenceSource
next
in interface Iterator<Sentence>
next
in class SentenceSource
public String getSource()
getSource
in class SentenceSource