Java Character Stream FileReader/FileWriter

FileReader Constructors

Constructor Description
FileReader(File file) throws IOException Creates an input stream for the file specified by file.
FileReader(FileDescriptor fd) throws IOException Creates an input stream for the FileDescriptor specified by fd.
FileReader(String fileName) throws IOException Creates an input stream for the file at the path specified by fileName.

FileReader Methods

FileReader methods are inherited from the parent classes(java.io.Reader, java.io.OutputStreamReader), so it has the same methods and no additional methods.

FileWriter Constructors

Constructor Description
FileWriter(File file) throws IOException Creates an output stream for the file specified by file.
FileWriter(File file, boolean append) Creates an output stream for the file specified by file with append mode enabled.
FileWriter(FileDescriptor fd) throws IOException Creates an output stream for the FileDescriptor specified by fd.
FileWriter(String fileName) throws IOException Creates an output stream for the file at the path specified by fileName.
FileWriter(String fileName, boolean append) throws IOException Creates an output stream for the file at the path specified by fileName with append mode enabled.

FileWriter Methods

FileWriter methods are inherited from the parent classes(java.io.Writer, java.io.OutputStreamWriter), so it has the same methods and no additional methods.