org.entityfs.util.io
Class LockAwareFileOutputStreamFactoryImpl

java.lang.Object
  extended by org.entityfs.util.io.LockAwareFileOutputStreamFactoryImpl
All Implemented Interfaces:
FileOutputStreamFactory

public class LockAwareFileOutputStreamFactoryImpl
extends Object
implements FileOutputStreamFactory

A FileOutputStreamFactory that creates LockAwareFileOutputStream:s.

Instances of this class should only be used once.

Since:
1.0
Author:
Karl Gustafsson
See Also:
LockAwareFileInputStream

Constructor Summary
LockAwareFileOutputStreamFactoryImpl(EntityLock l)
           
 
Method Summary
 FileOutputStream createFileOutputStream(File f, boolean append)
          Create a FileOutputStream on the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockAwareFileOutputStreamFactoryImpl

public LockAwareFileOutputStreamFactoryImpl(EntityLock l)
Method Detail

createFileOutputStream

public FileOutputStream createFileOutputStream(File f,
                                               boolean append)
                                        throws FileNotFoundException
Description copied from interface: FileOutputStreamFactory
Create a FileOutputStream on the file.

Specified by:
createFileOutputStream in interface FileOutputStreamFactory
Parameters:
f - The file to open.
Returns:
A FileOutputStream.
Throws:
FileNotFoundException - If the file is not found.