public class FileReader extends InputStreamReader
The FileReader is meant for reading streams of characters. For reading
streams of raw bytes, consider using a FileInputStream.
InputStreamReader,
FileInputStream| Constructor and Description |
|---|
FileReader(File file)
|
FileReader(File file,
Charset charset)
|
FileReader(FileDescriptor fd)
|
FileReader(String fileName)
Creates a new
FileReader, given the name of the file to read,
using the platform's
default charset. |
FileReader(String fileName,
Charset charset)
Creates a new
FileReader, given the name of the file to read
and the charset. |
close, getEncoding, read, read, readymark, markSupported, nullReader, read, read, reset, skip, transferTopublic FileReader(String fileName) throws FileNotFoundException
FileReader, given the name of the file to read,
using the platform's
default charset.fileName - the name of the file to readFileNotFoundException - 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(File file) throws FileNotFoundException
file - the File to readFileNotFoundException - 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(FileDescriptor fd)
fd - the FileDescriptor to readpublic FileReader(String fileName, Charset charset) throws IOException
FileReader, given the name of the file to read
and the charset.fileName - the name of the file to readcharset - the charsetIOException - 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(File file, Charset charset) throws IOException
file - the File to readcharset - the charsetIOException - if the file does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for
reading.