Package 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 createsMarkableFileInputStream
from aFile
-
-
Constructor Summary
Constructors Constructor Description MarkableFileInputStreamFactory(File file)
Initializes aMarkableFileInputStreamFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
createInputStream()
-
-
-
Constructor Detail
-
MarkableFileInputStreamFactory
public MarkableFileInputStreamFactory(File file) throws FileNotFoundException
Initializes aMarkableFileInputStreamFactory
.- Parameters:
file
- TheFile
used as input source.- Throws:
FileNotFoundException
- Thrown iffile
could not be found.
-
-
Method Detail
-
createInputStream
public InputStream createInputStream() throws IOException
- Specified by:
createInputStream
in interfaceInputStreamFactory
- Returns:
- A valid, open
InputStream
instance. - Throws:
IOException
- Thrown if IO errors occurred.
-
-