Package opennlp.tools.ml.model
Klasse PlainTextFileDataReader
java.lang.Object
opennlp.tools.ml.model.PlainTextFileDataReader
- Alle implementierten Schnittstellen:
DataReader
A generic
DataReader
implementation for plain text files.- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInitializes aPlainTextFileDataReader
via aBufferedReader
.Initializes aPlainTextFileDataReader
via aFile
.Initializes aPlainTextFileDataReader
via aInputStream
. -
Methodenübersicht
-
Konstruktordetails
-
PlainTextFileDataReader
Initializes aPlainTextFileDataReader
via aFile
.- Parameter:
f
- TheFile
that references the model to be read.- Löst aus:
IOException
- Thrown if IO errors occurred.
-
PlainTextFileDataReader
Initializes aPlainTextFileDataReader
via aInputStream
.- Parameter:
in
- TheInputStream
that references the file to be read.
-
PlainTextFileDataReader
Initializes aPlainTextFileDataReader
via aBufferedReader
.- Parameter:
in
- TheBufferedReader
that references the file to be read.
-
-
Methodendetails
-
readDouble
- Angegeben von:
readDouble
in SchnittstelleDataReader
- Gibt zurück:
- Reads and returns a
double
value. - Löst aus:
IOException
- Thrown if IO errors occurred during read operation.
-
readInt
- Angegeben von:
readInt
in SchnittstelleDataReader
- Gibt zurück:
- Reads and returns an
int
value. - Löst aus:
IOException
- Thrown if IO errors occurred during read operation.
-
readUTF
- Angegeben von:
readUTF
in SchnittstelleDataReader
- Gibt zurück:
- Reads and returns
UTF-encoded characters
. - Löst aus:
IOException
- Thrown if IO errors occurred during read operation.
-