org.entityfs.util.io
Class LockAwareFileInputStreamFactoryImpl

java.lang.Object
  extended by 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
In_jar:
entityfs-core

Constructor Summary
LockAwareFileInputStreamFactoryImpl(EntityLock l)
           
 
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
 

Constructor Detail

LockAwareFileInputStreamFactoryImpl

public LockAwareFileInputStreamFactoryImpl(EntityLock l)
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.
Throws:
FileNotFoundException - If the file is not found.