org.entityfs.support.io
Interface FileOutputStreamFactory

All Known Implementing Classes:
FileOutputStreamFactoryImpl, LockAwareFileOutputStreamFactoryImpl

public interface FileOutputStreamFactory

This interface defines an interface for creating FileOutputStream:s. It is used to open streams with certain properties without having to make the code opening the stream take care of that.

A factory instance should only be used once and then discarded.

Since:
1.0
Author:
Karl Gustafsson

Method Summary
 FileOutputStream createFileOutputStream(File f, boolean append)
          Create a FileOutputStream on the file.
 

Method Detail

createFileOutputStream

FileOutputStream createFileOutputStream(File f,
                                        boolean append)
                                        throws FileNotFoundException
Create a FileOutputStream on the file.

Parameters:
f - The file to open.
Returns:
A FileOutputStream.
Throws:
FileNotFoundException - If the file is not found.