Class DocumentSplitterStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<String,String>
opennlp.tools.formats.muc.DocumentSplitterStream
- All Implemented Interfaces:
AutoCloseable, ObjectStream<String>
-
Field Summary
FieldsFields inherited from class FilterObjectStream
samples -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FilterObjectStream
close, reset
-
Field Details
-
DOC_START_ELEMENT
- See Also:
-
DOC_END_ELEMENT
- See Also:
-
docs
-
-
Constructor Details
-
DocumentSplitterStream
DocumentSplitterStream(ObjectStream<String> samples)
-
-
Method Details
-
read
Description copied from interface:ObjectStreamReturns the nextTobject. Calling this method repeatedly until it returnsnullwill return each object from the underlying source exactly once.- Returns:
- The next object or
nullto signal that the stream is exhausted. - Throws:
IOException- Thrown if there is an error during reading.
-