java.io
Class FileReader
java.lang.Object
|
+--java.io.Reader
|
+--java.io.InputStreamReader
|
+--java.io.FileReader
This class provides a convenient way to set up a Reader
to read from a file. It opens the specified file for reading and creates
the InputStreamReader to read from the
resulting FileInputStream. This class can only be used
to read from files using the default character encoding. Use
InputStreamReader directly to use a non-default encoding.
Author:- Aaron M. Renn (arenn@urbanophile.com)
FileReader
public FileReader(java.io.File file) This method initializes a FileReader instance to read from
the specified File object.
Parameters:
Throws:
FileReader
public FileReader(java.io.FileDescriptor fd) This method initializes a FileReader instance to read from
this specified FileDescriptor object.
Parameters:
FileReader
public FileReader(java.lang.String name) This method initializes a FileReader instance to read from
the specified named file.
Parameters:
Throws:
Readerto read from a file. It opens the specified file for reading and creates theInputStreamReaderto read from the resultingFileInputStream. This class can only be used to read from files using the default character encoding. UseInputStreamReaderdirectly to use a non-default encoding.