java.io.FileWriter
Writes text to character files using a default buffer size. Encoding from characters to bytes uses either a specified charset or the platform's default charset.
The FileWriter is meant for writing streams of characters. For writing streams of raw bytes, consider using a FileOutputStream.
Some methods of FileWriter class
FileWriter(File): This method constructs a FileWriter given the File to write, using the platform's default charset.
FileWriter(FileDescriptor): This method constructs a FileWriter given a file descriptor, using the platform's default charset.
FileWriter(String): This method constructs a FileWriter given a file name, using the platform's default charset.
FileWriter(File, boolean): This method constructs a FileWriter given the File to write and a boolean indicating whether to append the data written, using the platform's default charset.
FileWriter(File, Charset): This method constructs a FileWriter given the File to write and charset.
FileWriter(String, boolean): This method constructs a FileWriter given a file name and a boolean indicating whether to append the data written, using the platform's default charset.
FileWriter(String, Charset): This method constructs a FileWriter given a file name and charset.
FileWriter(String, Charset, boolean): This method constructs a FileWriter given a file name, charset, and a boolean indicating whether to append the data written.
FileWriter(File, Charset, boolean): This method constructs a FileWriter given the File to write, charset, and a boolean indicating whether to append the data written.