org.entityfs.util.io
Class LockAwareFileInputStreamFactoryImpl
java.lang.Object
org.entityfs.util.io.LockAwareFileInputStreamFactoryImpl
- All Implemented Interfaces:
- FileInputStreamFactory
public class LockAwareFileInputStreamFactoryImpl
- extends Object
- implements FileInputStreamFactory
A FileInputStreamFactory that creates
LockAwareFileInputStream:s.
Instances of this class should only be used once.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
LockAwareFileInputStream
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockAwareFileInputStreamFactoryImpl
public LockAwareFileInputStreamFactoryImpl(EntityLock l)
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.
- Throws:
FileNotFoundException - If the file is not found.