Package opennlp.tools.ml.model
Interface DataReader
-
- All Known Implementing Classes:
BinaryFileDataReader
,ObjectDataReader
,PlainTextFileDataReader
public interface DataReader
Describes generic ways to read data from aDataInputStream
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
readDouble()
int
readInt()
String
readUTF()
-
-
-
Method Detail
-
readDouble
double readDouble() throws IOException
- Returns:
- Reads and returns a
double
value. - Throws:
IOException
- Thrown if IO errors occurred during read operation.
-
readInt
int readInt() throws IOException
- Returns:
- Reads and returns an
int
value. - Throws:
IOException
- Thrown if IO errors occurred during read operation.
-
readUTF
String readUTF() throws IOException
- Returns:
- Reads and returns
UTF-encoded characters
. - Throws:
IOException
- Thrown if IO errors occurred during read operation.
-
-