| java.lang.Object java.io.Writer java.io.OutputStreamWriter java.io.FileWriter
FileWriter | public class FileWriter extends OutputStreamWriter (Code) | | 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.
See Also: FileReader |
Constructor Summary | |
public | FileWriter(File file) Creates a FileWriter using the File file . | public | FileWriter(File file, boolean append) Creates a FileWriter using the File file . | public | FileWriter(FileDescriptor fd) Creates a FileWriter using the existing FileDescriptor fd . | public | FileWriter(String filename) Creates a FileWriter using the platform dependent filename . | public | FileWriter(String filename, boolean append) Creates a FileWriter using the platform dependent filename .
See the class description for how characters are converted to bytes. |
FileWriter | public FileWriter(File file) throws IOException(Code) | | Creates a FileWriter using the File file .
Parameters: file - the non-null File to write bytes to. throws: IOException - If the given file is not found |
FileWriter | public FileWriter(File file, boolean append) throws IOException(Code) | | Creates a FileWriter using the File file . The parameter
append determines whether or not the file is opened and
appended to or just opened empty.
Parameters: file - the non-null File to write bytes to. Parameters: append - should the file be appened to or opened empty. throws: IOException - If the given file is not found |
FileWriter | public FileWriter(FileDescriptor fd)(Code) | | Creates a FileWriter using the existing FileDescriptor fd .
Parameters: fd - the non-null FileDescriptor to write bytes to. |
FileWriter | public FileWriter(String filename) throws IOException(Code) | | Creates a FileWriter using the platform dependent filename .
See the class description for how characters are converted to bytes.
Parameters: filename - the non-null name of the file to write bytes to. throws: IOException - If the given file is not found |
FileWriter | public FileWriter(String filename, boolean append) throws IOException(Code) | | Creates a FileWriter using the platform dependent 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.
Parameters: filename - the non-null name of the file to write bytes to. Parameters: append - should the file be appened to or opened empty. throws: IOException - If the given file is not found |
|
|