public class FileReader extends InputStreamReader
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)
Creates a new FileReader, given the File
to read from.
|
FileReader(FileDescriptor fd)
Creates a new FileReader, given the
FileDescriptor to read from.
|
FileReader(String fileName)
Creates a new FileReader, given the name of the
file to read from.
|
close, getEncoding, read, read, readypublic FileReader(String fileName) throws FileNotFoundException
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.fileName - the name of the file to read frompublic FileReader(File file) throws FileNotFoundException
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.file - the File to read frompublic FileReader(FileDescriptor fd)
fd - the FileDescriptor to read fromaicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.