org.entityfs.support.io
Interface FileInputStreamFactory

All Known Implementing Classes:
FileInputStreamFactoryImpl, LockAwareFileInputStreamFactoryImpl

public interface FileInputStreamFactory

This interface defines an interface for creating FileInputStream:s. It is used to open streams with certain properties without having to make the code opening the stream take care of that.

A factory instance should only be used once and then discarded.

Since:
1.0
Author:
Karl Gustafsson

Method Summary
 FileInputStream createFileInputStream(File f)
          Create a FileInputStream on the file.
 

Method Detail

createFileInputStream

FileInputStream createFileInputStream(File f)
                                      throws FileNotFoundException
Create a FileInputStream on the file.

Parameters:
f - The file to open.
Returns:
A FileInputStream.
Throws:
FileNotFoundException - If the file is not found.