java.io
Class FileWriter
java.lang.Object
|
+--java.io.Writer
|
+--java.io.OutputStreamWriter
|
+--java.io.FileWriter
This is a convenience class for writing to files. It creates an
FileOutputStream and initializes an
OutputStreamWriter to write to it.
Authors:- Aaron M. Renn (arenn@urbanophile.com)
- Tom Tromey <tromey@cygnus.com>
FileWriter
public FileWriter(java.io.File file) This method initializes a new FileWriter object to write
to the specified File object.
Parameters:
FileWriter
public FileWriter(java.io.FileDescriptor fd) This method initializes a new FileWriter object to write
to the specified FileDescriptor object.
Parameters:
FileWriter
public FileWriter(java.lang.String name) This method intializes a new FileWriter object to write to the
specified named file.
Parameters:
FileWriter
public FileWriter(java.lang.String name, boolean append) This method intializes a new FileWriter object to write to the
specified named file. This form of the constructor allows the caller
to determin whether data should be written starting at the beginning or
the end of the file.
Parameters:
FileOutputStreamand initializes anOutputStreamWriterto write to it.