public final class FileReader
extends java.io.InputStreamReader
| Constructor and Description |
|---|
FileReader(java.io.File file)
Creates a new FileReader, given the File
to read from.
|
FileReader(java.io.FileDescriptor fd)
Creates a new FileReader, given the
FileDescriptor to read from.
|
FileReader(java.io.InputStream in)
Creates a new FileReader that uses UTF-8 charset.
|
FileReader(java.lang.String fileName)
Creates a new FileReader, given the name of the
file to read from.
|
public FileReader(java.lang.String fileName)
throws java.io.FileNotFoundException
fileName - the name of the file to read fromjava.io.FileNotFoundException - if the named file does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for
reading.public FileReader(java.io.File file)
throws java.io.FileNotFoundException
file - the File to read fromjava.io.FileNotFoundException - if the file does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for
reading.public FileReader(java.io.FileDescriptor fd)
fd - the FileDescriptor to read frompublic FileReader(java.io.InputStream in)
in - An InputStream