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 SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
ObjectDataReaderInstantiates anObjectDataReader.- Parameters:
- ois- The open- ObjectInputStreamto use.
 
 
- 
- 
Method Details- 
readDouble- Specified by:
- readDoublein interface- DataReader
- Returns:
- Reads and returns a doublevalue.
- Throws:
- IOException- Thrown if IO errors occurred during read operation.
 
- 
readInt- Specified by:
- readIntin interface- DataReader
- Returns:
- Reads and returns an intvalue.
- Throws:
- IOException- Thrown if IO errors occurred during read operation.
 
- 
readUTF- Specified by:
- readUTFin interface- DataReader
- Returns:
- Reads and returns UTF-encoded characters.
- Throws:
- IOException- Thrown if IO errors occurred during read operation.
 
 
-