org.entityfs.support.io
Class FileInputStreamFactoryImpl

java.lang.Object
  extended by org.entityfs.support.io.FileInputStreamFactoryImpl
All Implemented Interfaces:
FileInputStreamFactory

public class FileInputStreamFactoryImpl
extends Object
implements FileInputStreamFactory

Standard implementation of FileInputStreamFactory that creates plain FileInputStream objects.

An instance of this class does not contain any mutable internal state. Use the singleton instance (INSTANCE). The constructor is declared private.

Since:
1.0
Author:
Karl Gustafsson

Field Summary
static FileInputStreamFactoryImpl INSTANCE
          Singleton instance.
 
Method Summary
 FileInputStream createFileInputStream(File f)
          Create a FileInputStream on the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final FileInputStreamFactoryImpl INSTANCE
Singleton instance.

Method Detail

createFileInputStream

public FileInputStream createFileInputStream(File f)
                                      throws FileNotFoundException
Description copied from interface: FileInputStreamFactory
Create a FileInputStream on the file.

Specified by:
createFileInputStream in interface FileInputStreamFactory
Parameters:
f - The file to open.
Returns:
A FileInputStream object for the file.
Throws:
FileNotFoundException - If the file is not found.