API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. FileReader View Source
Author(s)
Mark Reinhold
Since
JDK1.1
Version
1.16, 05/11/17
Serial
Hierarchy
 Object
      Reader
          InputStreamReader
              FileReader
Implements
Subclasses
Description
public class FileReader
  Convenience class for reading character files.
Constructors
public FileReader (File file) throws FileNotFoundException
  Creates a new FileReader, given the File to read from.
public FileReader (FileDescriptor fd)
  Creates a new FileReader, given the FileDescriptor to read from.
public FileReader (String fileName) throws FileNotFoundException
  Creates a new FileReader, given the name of the file to read from.
Methods
Hide/Show inherited methods
public void close () throws IOException [Inherited From InputStreamReader] [Specified in Reader]
public String getEncoding () [Inherited From InputStreamReader]
  Returns the name of the character encoding being used by this stream.
public void mark (int readAheadLimit) throws IOException [Inherited From Reader]
  Marks the present position in the stream.
public boolean markSupported () [Inherited From Reader]
  Tells whether this stream supports the mark() operation.
public int read () throws IOException [Inherited From InputStreamReader]
  Reads a single character.
public int read (char[] cbuf) throws IOException [Inherited From Reader]
  Reads characters into an array.
public int read (char[] cbuf, int offset, int length) throws IOException [Inherited From InputStreamReader] [Specified in Reader]
  Reads characters into a portion of an array.
public int read (CharBuffer target) throws IOException [Inherited From Reader]
  Attempts to read characters into the specified character buffer.
public boolean ready () throws IOException [Inherited From InputStreamReader]
  Tells whether this stream is ready to be read.
public void reset () throws IOException [Inherited From Reader]
  Resets the stream.
public long skip (long n) throws IOException [Inherited From Reader]
  Skips characters.
Fields
Hide/Show inherited fields
protected Object lock [Inherited From Reader]
  The object used to synchronize operations on this stream.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar