org.entityfs.support.io
Class FileInputStreamFactoryImpl
java.lang.Object
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
- In_jar:
- entityfs-core
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final FileInputStreamFactoryImpl INSTANCE
- Singleton instance.
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.