Package java.io
Class FileOutputStream
FileOutputStream(File file)
Throws:
FileOutputStream(FileDescriptor fd)
Throws:
FileOutputStream(String name)
Throws:
FileOutputStream(String name, boolean append)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Important Note
Make sure that any steam accessing a file is closed before a new stream for the same file is created.
constructor FileOutputStream(File file):
Creates a file output stream to write to the file represented by the specified File object. A new FileDescriptor object is created to represent this file connection. Note that any existing file will be overwritten, i.e. deleted and created anew.
constructor FileOutputStream(FileDescriptor fd):
Creates an output file stream to write to the specified file descriptor, which represents an existing connection to an actual file in the file system. Note that any existing file will be overwritten, i.e. deleted and created anew.
constructor FileOutputStream(String name):
Creates an output file stream to write to the file with the specified name. A new FileDescriptor object is created to represent this file connection. Note that any existing file will be overwritten, i.e. deleted and created anew.
constructor FileOutputStream(String name, boolean append):
Creates an output file stream to write to the file with the specified name. If the second argument is true, then the data will be written to the end of the file rather than the beginning. A new FileDescriptor object is created to represent this file connection.