Java java.io FileWriter fields, constructors, methods, implement or subclass

Example usage for Java java.io FileWriter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io FileWriter.

The text is from its open source code.

Subclass

java.io.FileWriter has subclasses.
Click this link to see all its subclasses.

Implementation

java.io.FileWriter has the following implementations.
Click this link to see all its implementation.

Constructor

FileWriter(String fileName)
Constructs a FileWriter given a file name, using the platform's java.nio.charset.Charset#defaultCharset() default charset
FileWriter(File file)
Constructs a FileWriter given the File to write, using the platform's java.nio.charset.Charset#defaultCharset() default charset
FileWriter(FileDescriptor fd)
Constructs a FileWriter given a file descriptor, using the platform's java.nio.charset.Charset#defaultCharset() default charset .
FileWriter(String fileName, boolean append)
Constructs a FileWriter given a file name and a boolean indicating whether to append the data written, using the platform's java.nio.charset.Charset#defaultCharset() default charset .
FileWriter(File file, boolean append)
Constructs a FileWriter given the File to write and a boolean indicating whether to append the data written, using the platform's java.nio.charset.Charset#defaultCharset() default charset .
FileWriter(String fileName, Charset charset)
Constructs a FileWriter given a file name and java.nio.charset.Charset charset .
FileWriter(File file, Charset charset)
Constructs a FileWriter given the File to write and java.nio.charset.Charset charset .

Method

Writerappend(CharSequence csq)
voidclose()
voidflush()
Flushes the stream.
StringgetEncoding()
Returns the name of the character encoding being used by this stream.
StringtoString()
Returns a string representation of the object.
voidwrite(int c)
Writes a single character.
voidwrite(char cbuf[], int off, int len)
Writes a portion of an array of characters.