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
Constructors -
Method Summary
-
Constructor Details
-
MarkableFileInputStreamFactory
Initializes aMarkableFileInputStreamFactory.- Parameters:
file- TheFileused as input source.- Throws:
FileNotFoundException- Thrown iffilecould not be found.
-
-
Method Details
-
createInputStream
- Specified by:
createInputStreamin interfaceInputStreamFactory- Returns:
- A valid, open
InputStreaminstance. - Throws:
IOException- Thrown if IO errors occurred.
-