java::io::FileWriter Class Reference

Inheritance diagram for java::io::FileWriter:

Inheritance graph
java::io::OutputStreamWriterjava::lang::Objectjava::lang::Interfacejava::io::Writer
[legend]
Collaboration diagram for java::io::FileWriter:

Collaboration graph
java::io::OutputStreamWriterjava::lang::Objectjava::lang::Interfacejava::lang::ObjectRefjava::io::Writerjava::lang::Comparable
[legend]

List of all members.


Detailed Description

Convenience class for writing character files.

The constructors of this class assume that the default character encoding and the default byte-buffer size are acceptable. To specify these values yourself, construct an OutputStreamWriter on a FileOutputStream.

Whether or not a file is available or may be created depends upon the underlying platform. Some platforms, in particular, allow a file to be opened for writing by only one FileWriter (or other file-writing object) at a time. In such situations the constructors in this class will fail if the file involved is already open.

FileWriter is meant for writing streams of characters. For writing streams of raw bytes, consider using a FileOutputStream.

Version:
1.15, 01/12/03
Author:
Mark Reinhold
Since:
JDK1.1

Public Member Functions

 FileWriter (const FileDescriptor &_fd=0)
 Creates a new FileWriter, given the FileDescriptor to read from.
 FileWriter (const String &name, const String &enc=nilCString)
 Creates a new FileWriter, given the name of the file to read from.
 FileWriter (const File &file, const String &enc=nilCString)
 Creates a new FileWriter, given the File to read from.

Constructor & Destructor Documentation

java::io::FileWriter::FileWriter ( const FileDescriptor _fd = 0  ) 

Creates a new FileWriter, given the FileDescriptor to read from.

Parameters:
fd the FileDescriptor to read from

java::io::FileWriter::FileWriter ( const String name,
const String enc = nilCString 
)

Creates a new FileWriter, given the name of the file to read from.

Parameters:
fileName the name of the file to read from
Exceptions:
<tt>FileNotFoundException</tt> if the specified file is not found

java::io::FileWriter::FileWriter ( const File file,
const String enc = nilCString 
)

Creates a new FileWriter, given the File to read from.

Parameters:
file the File to read from
Exceptions:
<tt>FileNotFoundException</tt> if the specified file is not found


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:31 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3