Package opennlp.tools.util

# Class MarkableFileInputStreamFactory

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

All Implemented Interfaces:
  `opennlp.tools.util.InputStreamFactory`

public class MarkableFileInputStreamFactory extends Object implements opennlp.tools.util.InputStreamFactory
A factory that creates `MarkableFileInputStream` from a `File`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MarkableFileInputStreamFactory(File file)`
  Initializes a `MarkableFileInputStreamFactory`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `InputStream`
  `createInputStream()`

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

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

- ## Constructor Details

  - ### MarkableFileInputStreamFactory

    public MarkableFileInputStreamFactory(File file) throws FileNotFoundException
    Initializes a `MarkableFileInputStreamFactory`.
    Parameters:
      `file` - The `File` used as input source.
    Throws:
      `FileNotFoundException` - Thrown if `file` could not be found.

- ## Method Details

  - ### createInputStream

    public InputStream createInputStream() throws IOException
    Specified by:
      `createInputStream` in interface `opennlp.tools.util.InputStreamFactory`
    Throws:
      `IOException`