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
-
Method Summary
-
Constructor Details
-
ObjectDataReader
Instantiates anObjectDataReader
.- Parameters:
ois
- The openObjectInputStream
to use.
-
-
Method Details
-
readDouble
- Specified by:
readDouble
in interfaceDataReader
- Returns:
- Reads and returns a
double
value. - Throws:
IOException
- Thrown if IO errors occurred during read operation.
-
readInt
- Specified by:
readInt
in interfaceDataReader
- Returns:
- Reads and returns an
int
value. - Throws:
IOException
- Thrown if IO errors occurred during read operation.
-
readUTF
- Specified by:
readUTF
in interfaceDataReader
- Returns:
- Reads and returns
UTF-encoded characters
. - Throws:
IOException
- Thrown if IO errors occurred during read operation.
-