|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkylm.reader.TextStreamSentenceReader
public class TextStreamSentenceReader
A sentence loader that loads from an arbitrary input stream
| Constructor Summary | |
|---|---|
TextStreamSentenceReader(java.io.InputStream is)
The constructor, saves the sentence array and uses a single space as the default divider |
|
TextStreamSentenceReader(java.io.InputStream is,
java.lang.String divider)
The constructor, saves the sentence array and uses the passed in divider |
|
| Method Summary | |
|---|---|
java.util.Iterator<java.lang.String[]> |
iterator()
|
boolean |
supportsReset()
Whether the sentence loader supports returning multiple iterators or not. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextStreamSentenceReader(java.io.InputStream is)
is - The text stream from which to load the sentences
public TextStreamSentenceReader(java.io.InputStream is,
java.lang.String divider)
is - The text stream from which to load the sentencesdivider - The divider that is used to divide the text strings| Method Detail |
|---|
public java.util.Iterator<java.lang.String[]> iterator()
iterator in interface java.lang.Iterable<java.lang.String[]>iterator in interface SentenceReaderpublic boolean supportsReset()
SentenceReader
supportsReset in interface SentenceReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||