Package opennlp.tools.formats.convert
Klasse FileToStringSampleStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<File,String>
opennlp.tools.formats.convert.FileToStringSampleStream
- Alle implementierten Schnittstellen:
AutoCloseable,ObjectStream<String>
Provides the ability to read the contents of files
contained in an object stream of files.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFileToStringSampleStream(ObjectStream<File> samples, Charset encoding) Initializes aFileToStringSampleStream. -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.util.FilterObjectStream
close, reset
-
Konstruktordetails
-
FileToStringSampleStream
Initializes aFileToStringSampleStream.- Parameter:
samples- TheObjectStreamcontaining the files.encoding- TheCharsetencoding of the files.
-
-
Methodendetails
-
read
Beschreibung aus Schnittstelle kopiert:ObjectStreamReturns the nextObjectStreamobject. Calling this method repeatedly until it returnsnullwill return each object from the underlying source exactly once.- Gibt zurück:
- The next object or
nullto signal that the stream is exhausted. - Löst aus:
IOException- Thrown if there is an error during reading.
-