Package opennlp.tools.ml.model
Interface DataReader
-
- All Known Implementing Classes:
BinaryFileDataReader,ObjectDataReader,PlainTextFileDataReader
public interface DataReaderDescribes generic ways to read data from aDataInputStream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublereadDouble()intreadInt()StringreadUTF()
-
-
-
Method Detail
-
readDouble
double readDouble() throws IOException- Returns:
- Reads and returns a
doublevalue. - Throws:
IOException- Thrown if IO errors occurred during read operation.
-
readInt
int readInt() throws IOException- Returns:
- Reads and returns an
intvalue. - 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.
-
-