Package opennlp.tools.ml.model
Class ObjectDataReader
java.lang.Object
opennlp.tools.ml.model.ObjectDataReader
- All Implemented Interfaces:
DataReader
A
DataReader implementation based on ObjectInputStream.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ObjectDataReader
Instantiates anObjectDataReader.- Parameters:
ois- The openObjectInputStreamto use.
-
-
Method Details
-
readDouble
- Specified by:
readDoublein interfaceDataReader- Returns:
- Reads and returns a
doublevalue. - Throws:
IOException- Thrown if IO errors occurred during read operation.
-
readInt
- Specified by:
readIntin interfaceDataReader- Returns:
- Reads and returns an
intvalue. - Throws:
IOException- Thrown if IO errors occurred during read operation.
-
readUTF
- Specified by:
readUTFin interfaceDataReader- Returns:
- Reads and returns
UTF-encoded characters. - Throws:
IOException- Thrown if IO errors occurred during read operation.
-