DataReader (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.ml.model, interface: DataReader

# Interface DataReader

All Known Implementing Classes:
  `BinaryFileDataReader, ObjectDataReader, PlainTextFileDataReader`

public interface DataReader
Describes generic ways to read data from a `DataInputStream`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `readDouble()`
  `int`
  `readInt()`
  `String`
  `readUTF()`

- ## Method Details

  - ### 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.