org.entityfs.support.io
Class FileOutputStreamFactoryImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final FileOutputStreamFactoryImpl INSTANCE
- Singleton instance
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.