|
Final | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.Writer
java.io.OutputStreamWriter
java.io.FileWriter
public class FileWriter
FileWriter is a class for writing characters out to a file. The default character encoding, 8859_1 is currently used to convert characters to bytes in the file.
FileReader| Field Summary |
|---|
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
FileWriter(File file)
Creates a FileWriter using the File file. |
|
FileWriter(File file,
boolean append)
Creates a FileWriter using the File file. |
|
FileWriter(FileDescriptor fd)
Creates a FileWriter using the existing FileDescriptor fd. |
|
FileWriter(String filename)
Creates a FileWriter using the platform dependent filename. |
|
FileWriter(String filename,
boolean append)
Creates a FileWriter using the platform dependent filename. |
|
| Method Summary |
|---|
| Methods inherited from class java.io.OutputStreamWriter |
|---|
close, flush, getEncoding, write, write, write |
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileWriter(File file)
throws IOException
file.
file - the non-null File to write bytes to.
IOException - If the given file is not foundpublic FileWriter(File file,
boolean append)
throws IOException
file. The parameter
append determines whether or not the file is opened and appended to
or just opened empty.
file - the non-null File to write bytes to.append - should the file be appened to or opened empty.
IOException - If the given file is not foundpublic FileWriter(FileDescriptor fd)
fd.
fd - the non-null FileDescriptor to write bytes to.public FileWriter(String filename)
throws IOException
filename. See
the class description for how characters are converted to bytes.
filename - the non-null name of the file to write bytes to.
IOException - If the given file is not foundpublic FileWriter(String filename,
boolean append)
throws IOException
filename. See
the class description for how characters are converted to bytes. The parameter
append determines whether or not the file is opened and appended to
or just opened empty.
filename - the non-null name of the file to write bytes to.append - should the file be appened to or opened empty.
IOException - If the given file is not found
|
Final | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||