Package opennlp.tools.ml.model
Klasse BinaryFileDataReader
java.lang.Object
opennlp.tools.ml.model.BinaryFileDataReader
- Alle implementierten Schnittstellen:
DataReader
A
DataReader
that reads files from a binary format.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
BinaryFileDataReader
InstantiatesBinaryFileDataReader
via aFile
and creates aDataInputStream
for it. Based on whether the file's suffix contains.gz
, it detects whether the file is gzipped or not.- Parameter:
f
- TheFile
that references the model to be read.- Löst aus:
IOException
-
BinaryFileDataReader
- Parameter:
in
- TheInputStream
that references the model to be read.
-
BinaryFileDataReader
InstantiatesBinaryFileDataReader
via anDataInputStream
.- Parameter:
in
- TheDataInputStream
that references the model 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.
-