Package opennlp.tools.util
Class MarkableFileInputStreamFactory
java.lang.Object
opennlp.tools.util.MarkableFileInputStreamFactory
- All Implemented Interfaces:
InputStreamFactory
A factory that creates
MarkableFileInputStream
from a File
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MarkableFileInputStreamFactory
Initializes aMarkableFileInputStreamFactory
.- Parameters:
file
- TheFile
used as input source.- Throws:
FileNotFoundException
- Thrown iffile
could not be found.
-
-
Method Details
-
createInputStream
- Specified by:
createInputStream
in interfaceInputStreamFactory
- Returns:
- A valid, open
InputStream
instance. - Throws:
IOException
- Thrown if IO errors occurred.
-