← 返回首页
FileReader (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Field Summary
  3. Constructor Summary
  4. Method Summary
  5. Constructor Details
    1. FileReader(String)
    2. FileReader(File)
    3. FileReader(FileDescriptor)
    4. FileReader(String, Charset)
    5. FileReader(File, Charset)
Hide sidebar  Show sidebar

Class FileReader

All Implemented Interfaces: Closeable, AutoCloseable, Readable
public class FileReader extends InputStreamReader
Reads text from character files using a default buffer size. Decoding from bytes to characters uses either a specified charset or the default charset.

The FileReader is meant for reading streams of characters. For reading streams of raw bytes, consider using a FileInputStream.

Since: 1.1 See Also:

Scripting on this page tracks web page traffic, but does not change the content in any way.