public class FileReader
Reader that reads from a file in the file system. All
read requests made by calling methods in this class are directly forwarded to
the equivalent function of the underlying operating system. Since this may
induce some performance penalty, in particular if many small read requests
are made, a FileReader is often wrapped by a BufferedReader.
|Constructor and Description
Constructs a new FileReader on the given
Construct a new FileReader on the given FileDescriptor
Construct a new FileReader on the given file named
public FileReader(File file) throws java.io.FileNotFoundException
file - a File to be opened for reading characters from.
java.io.FileNotFoundException - if
file does not exist.
public FileReader(FileDescriptor fd)
a previously opened FileDescriptor is passed as an argument, no
FileNotFoundException can be thrown.
fd - the previously opened file descriptor.
public FileReader(java.lang.String filename) throws java.io.FileNotFoundException
filename - an absolute or relative path specifying the file to open.
java.io.FileNotFoundException - if there is no file named