public class FileReader
extends java.io.InputStreamReader
| Constructor and Description |
|---|
FileReader(java.io.FileDescriptor fd,
java.lang.String charset)
Creates a new FileReader, given the
FileDescriptor to read from.
|
FileReader(java.io.File file,
java.lang.String charset)
Creates a new FileReader, given the File instance to read from.
|
FileReader(java.lang.String filename,
java.lang.String charset)
Creates a new FileReader, given the name of the file to read from.
|
public FileReader(java.lang.String filename,
java.lang.String charset)
throws java.io.IOException
filename - the name of the file to read fromcharset - the charset to decode the file, such as UTF-8.
If null, UTF-8 is assumed.java.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.java.io.IOExceptionpublic FileReader(java.io.File file,
java.lang.String charset)
throws java.io.IOException
file - the File to read fromcharset - the charset to decode the file, such as UTF-8.
If null, UTF-8 is assumed.java.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.java.io.IOExceptionpublic FileReader(java.io.FileDescriptor fd,
java.lang.String charset)
throws java.io.IOException
fd - the FileDescriptor to read fromcharset - the charset to decode the file, such as UTF-8.
If null, UTF-8 is assumed.java.io.IOExceptionCopyright © 2005-2011 Potix Corporation. All Rights Reserved.