Package opennlp.tools.formats.convert
Class FileToStringSampleStream
- All Implemented Interfaces:
AutoCloseable,opennlp.tools.util.ObjectStream<String>
Provides the ability to read the contents of files
contained in an object stream of files.
-
Constructor Summary
ConstructorsConstructorDescriptionFileToStringSampleStream(opennlp.tools.util.ObjectStream<File> samples, Charset encoding) Initializes aFileToStringSampleStream. -
Method Summary
Methods inherited from class opennlp.tools.util.FilterObjectStream
close, reset
-
Constructor Details
-
FileToStringSampleStream
Initializes aFileToStringSampleStream.- Parameters:
samples- TheObjectStreamcontaining the files.encoding- TheCharsetencoding of the files.
-
-
Method Details
-
read
- Throws:
IOException
-