org.entityfs.support.io
Class FileOutputStreamFactoryImpl

java.lang.Object
  extended by org.entityfs.support.io.FileOutputStreamFactoryImpl
All Implemented Interfaces:
FileOutputStreamFactory

public class FileOutputStreamFactoryImpl
extends Object
implements FileOutputStreamFactory

Standard implementation of FileOutputStreamFactory that creates plain FileOutputStream objects.

An instance of this class does not contain any mutable internal state. Use the singleton instance (INSTANCE). The constructor is declared private.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
entityfs-core

Field Summary
static FileOutputStreamFactoryImpl INSTANCE
          Singleton instance
 
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
 

Field Detail

INSTANCE

public static final FileOutputStreamFactoryImpl INSTANCE
Singleton instance

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 object on the file.
Throws:
FileNotFoundException - If the file is not found.