Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.io

Class FileWriter

java.lang.Object
|
+--java.io.Writer
   |
   +--java.io.OutputStreamWriter
      |
      +--java.io.FileWriter


public class FileWriter

extends OutputStreamWriter

This is a convenience class for writing to files. It creates an FileOutputStream and initializes an OutputStreamWriter to write to it.

Authors:

Constructor Summary

FileWriter(java.io.File file)

This method initializes a new FileWriter object to write to the specified File object.
FileWriter(java.io.FileDescriptor fd)

This method initializes a new FileWriter object to write to the specified FileDescriptor object.
FileWriter(java.lang.String name)

This method intializes a new FileWriter object to write to the specified named file.
FileWriter(java.lang.String name, boolean append)

This method intializes a new FileWriter object to write to the specified named file.

Constructor Details

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: