Class BinaryFileDataReader
java.lang.Object
opennlp.tools.ml.model.BinaryFileDataReader
- All Implemented Interfaces:
opennlp.tools.ml.model.DataReader
A
DataReader that reads files from a binary format.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BinaryFileDataReader
InstantiatesBinaryFileDataReadervia aFileand creates aDataInputStreamfor it. Based on whether the file's suffix contains.gz, it detects whether the file is gzipped or not.- Parameters:
f- TheFilethat references the model to be read.- Throws:
IOException
-
BinaryFileDataReader
- Parameters:
in- TheInputStreamthat references the model to be read.
-
BinaryFileDataReader
InstantiatesBinaryFileDataReadervia anDataInputStream.- Parameters:
in- TheDataInputStreamthat references the model to be read.
-
-
Method Details
-
readDouble
- Specified by:
readDoublein interfaceopennlp.tools.ml.model.DataReader- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceopennlp.tools.ml.model.DataReader- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceopennlp.tools.ml.model.DataReader- Throws:
IOException
-