opennlp.tools.util

## Class MarkableFileInputStreamFactory

- java.lang.Object
- - opennlp.tools.util.MarkableFileInputStreamFactory

- All Implemented Interfaces:
    InputStreamFactory

      public class MarkableFileInputStreamFactory
      extends Object
      implements InputStreamFactory

  A factory that creates `MarkableFileInputStream` from a `File`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MarkableFileInputStreamFactory(File file)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `createInputStream()`

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

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

- - ### Constructor Detail

    - #### MarkableFileInputStreamFactory

          public MarkableFileInputStreamFactory(File file)
                                         throws FileNotFoundException

      Throws:
        `FileNotFoundException`

  - ### Method Detail

    - #### createInputStream

          public InputStream createInputStream()
                                        throws IOException

      Specified by:
        `createInputStream` in interface `InputStreamFactory`
      Throws:
        `IOException`

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