public class FileInputStreamFactory extends java.lang.Object implements InputStreamFactory
InputStreamFactory
that manufactures
FileInputStreams
.Constructor and Description |
---|
FileInputStreamFactory(java.io.File file)
FileInputStreamFactory constructor. |
FileInputStreamFactory(java.lang.String filename)
FileInputStreamFactory constructor. |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
Returns an InputStream.
|
public FileInputStreamFactory(java.io.File file)
FileInputStreamFactory
constructor.file
- a File
for which to generate an InputStream
public FileInputStreamFactory(java.lang.String filename)
FileInputStreamFactory
constructor.filename
- the name of a file for which to generate an
InputStream
.public java.io.InputStream getInputStream() throws java.io.IOException
InputStreamFactory
The caller is responsible for closing the returned InputStream
.
getInputStream
in interface InputStreamFactory
java.io.IOException