org.entityfs.util.io
Class LockAwareFileOutputStreamFactoryImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockAwareFileOutputStreamFactoryImpl
public LockAwareFileOutputStreamFactoryImpl(EntityLock l)
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.