Package org.daisy.dotify.common.io
Class FileInputStreamMaker
- java.lang.Object
-
- org.daisy.dotify.common.io.FileInputStreamMaker
-
- All Implemented Interfaces:
InputStreamMaker
public class FileInputStreamMaker extends Object implements InputStreamMaker
Provides a file based input stream maker.
-
-
Constructor Summary
Constructors Constructor Description FileInputStreamMaker(File f)
Creates a new input stream maker with the specified file as source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
newInputStream()
Returns a new input stream for the source.
-
-
-
Constructor Detail
-
FileInputStreamMaker
public FileInputStreamMaker(File f)
Creates a new input stream maker with the specified file as source.- Parameters:
f
- the file containing the stream source
-
-
Method Detail
-
newInputStream
public InputStream newInputStream() throws IOException
Description copied from interface:InputStreamMaker
Returns a new input stream for the source.- Specified by:
newInputStream
in interfaceInputStreamMaker
- Returns:
- a new input stream
- Throws:
IOException
- if an IO-problem occurs
-
-