BinaryFileDataReader (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.ml.model

## Class BinaryFileDataReader

- java.lang.Object
- - opennlp.tools.ml.model.BinaryFileDataReader

- All Implemented Interfaces:
    DataReader

      public class BinaryFileDataReader
      extends Object
      implements DataReader

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BinaryFileDataReader(DataInputStream in)`
    `BinaryFileDataReader(File f)`
    `BinaryFileDataReader(InputStream in)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `readDouble()`
    `int` | `readInt()`
    `String` | `readUTF()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BinaryFileDataReader

          public BinaryFileDataReader(File f)
                               throws IOException

      Throws:
        `IOException`

    - #### BinaryFileDataReader

          public BinaryFileDataReader(InputStream in)

    - #### BinaryFileDataReader

          public BinaryFileDataReader(DataInputStream in)

  - ### Method Detail

    - #### readDouble

          public double readDouble()
                            throws IOException

      Specified by:
        `readDouble` in interface `DataReader`
      Throws:
        `IOException`

    - #### readInt

          public int readInt()
                      throws IOException

      Specified by:
        `readInt` in interface `DataReader`
      Throws:
        `IOException`

    - #### readUTF

          public String readUTF()
                         throws IOException

      Specified by:
        `readUTF` in interface `DataReader`
      Throws:
        `IOException`

Copyright © 2026 The Apache Software Foundation. All rights reserved.