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 createsMarkableFileInputStreamfrom aFile
-
-
Constructor Summary
Constructors Constructor Description MarkableFileInputStreamFactory(File file)Initializes aMarkableFileInputStreamFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamcreateInputStream()
-
-
-
Constructor Detail
-
MarkableFileInputStreamFactory
public MarkableFileInputStreamFactory(File file) throws FileNotFoundException
Initializes aMarkableFileInputStreamFactory.- Parameters:
file- TheFileused as input source.- Throws:
FileNotFoundException- Thrown iffilecould not be found.
-
-
Method Detail
-
createInputStream
public InputStream createInputStream() throws IOException
- Specified by:
createInputStreamin interfaceInputStreamFactory- Returns:
- A valid, open
InputStreaminstance. - Throws:
IOException- Thrown if IO errors occurred.
-
-