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
InstantiatesBinaryFileDataReadervia aFileand creates aDataInputStreamfor it. Based on whether the file's suffix contains.gz, it detects whether the file is gzipped or not.- Parameter:
f- TheFilethat references the model to be read.- Löst aus:
IOException
-
BinaryFileDataReader
- Parameter:
in- TheInputStreamthat references the model to be read.
-
BinaryFileDataReader
InstantiatesBinaryFileDataReadervia anDataInputStream.- Parameter:
in- TheDataInputStreamthat references the model to be read.
-
-
Methodendetails
-
readDouble
- Angegeben von:
readDoublein SchnittstelleDataReader- Gibt zurück:
- Reads and returns a
doublevalue. - Löst aus:
IOException- Thrown if IO errors occurred during read operation.
-
readInt
- Angegeben von:
readIntin SchnittstelleDataReader- Gibt zurück:
- Reads and returns an
intvalue. - Löst aus:
IOException- Thrown if IO errors occurred during read operation.
-
readUTF
- Angegeben von:
readUTFin SchnittstelleDataReader- Gibt zurück:
- Reads and returns
UTF-encoded characters. - Löst aus:
IOException- Thrown if IO errors occurred during read operation.
-