Oracle
docs.oracle.com › en › java › javase › 11 › docs › api › java.base › java › io › Reader.html
Reader (Java SE 11 & JDK 11 )
January 20, 2026 - java.io.Reader · All Implemented Interfaces: Closeable, AutoCloseable, Readable · Direct Known Subclasses: BufferedReader, CharArrayReader, FilterReader, InputStreamReader, PipedReader, StringReader, URLReader · public abstract class Reader extends Object implements Readable, Closeable ·
Oracle
docs.oracle.com › en › java › javase › 11 › docs › api › java.base › java › io › BufferedReader.html
BufferedReader (Java SE 11 & JDK 11 )
January 20, 2026 - In general, each read request made of a Reader causes a corresponding read request to be made of the underlying character or byte stream. It is therefore advisable to wrap a BufferedReader around any Reader whose read() operations may be costly, such as FileReaders and InputStreamReaders.
Oracle
docs.oracle.com › en › java › javase › 11 › docs › api › java.base › java › io › FileReader.html
FileReader (Java SE 11 & JDK 11 )
January 20, 2026 - java.io.Reader · java.io.InputStreamReader · java.io.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 ...
Java
download.java.net › java › early_access › panama › docs › api › java.base › java › io › FileReader.html
FileReader (Java SE 19 & JDK 19 [build 1])
11 · public FileReader · (File file, Charset charset) throws IOException · Creates a new FileReader, given the File to read and the charset. Parameters: file - the File to read · charset - the charset · Throws: IOException - if the file does not exist, is a directory rather than a regular ...
Oracle
docs.oracle.com › en › java › javase › 11 › docs › api › java.base › java › io › InputStreamReader.html
InputStreamReader (Java SE 11 & JDK 11 )
January 20, 2026 - java.io.Reader · java.io.InputStreamReader · All Implemented Interfaces: Closeable, AutoCloseable, Readable · Direct Known Subclasses: FileReader · public class InputStreamReader extends Reader · An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and ...
Oracle
docs.oracle.com › en › java › javase › 11 › docs › api › java.base › java › io › StringReader.html
StringReader (Java SE 11 & JDK 11 )
January 20, 2026 - Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), ready(), mark(), or reset() invocations will throw an IOException. Closing a previously closed stream has no effect. This method will block while there is another thread ...
GitHub
github.com › AdoptOpenJDK › openjdk-jdk11 › blob › master › src › java.base › share › classes › java › io › BufferedReader.java
openjdk-jdk11/src/java.base/share/classes/java/io/BufferedReader.java at master · AdoptOpenJDK/openjdk-jdk11
import java.util.stream.StreamSupport; · /** * Reads text from a character-input stream, buffering characters so as to · * provide for the efficient reading of characters, arrays, and lines.
Author AdoptOpenJDK
GitHub
github.com › openjdk › jdk › blob › 339ca887835d6456da9fcccdc32fb7716cbc60bb › src › java.base › share › classes › java › io › Reader.java
jdk/src/java.base/share/classes/java/io/Reader.java at 339ca887835d6456da9fcccdc32fb7716cbc60bb · openjdk/jdk
* @return a {@code Reader} which reads no characters · * * @since 11 · */ public static Reader nullReader() { return new Reader() { private volatile boolean closed; · private void ensureOpen() throws IOException { if (closed) { throw new IOException("Stream closed"); } } ·
Author openjdk
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.base › java › io › Reader.html
Reader (Java SE 21 & JDK 21)
January 20, 2026 - a Reader which reads no characters · Since: 11 · public int read · (CharBuffer target) throws IOException · Attempts to read characters into the specified character buffer. The buffer is used as a repository of characters as-is: the only changes made are the results of a put operation.
Oracle
docs.oracle.com › en › java › javase › 11 › docs › api › java.base › java › lang › Readable.html
Readable (Java SE 11 & JDK 11 )
January 20, 2026 - Package java.lang · All Known Implementing Classes: BufferedReader, CharArrayReader, CharBuffer, FileReader, FilterReader, InputStreamReader, LineNumberReader, PipedReader, PushbackReader, Reader, StringReader, URLReader · public interface Readable · A Readable is a source of characters.
Oracle
docs.oracle.com › en › java › javase › 17 › docs › api › java.base › java › io › Reader.html
Reader (Java SE 17 & JDK 17)
April 21, 2026 - a Reader which reads no characters · Since: 11 · public int read · (CharBuffer target) throws IOException · Attempts to read characters into the specified character buffer. The buffer is used as a repository of characters as-is: the only changes made are the results of a put operation.
GitHub
github.com › maxmind › MaxMind-DB-Reader-java
GitHub - maxmind/MaxMind-DB-Reader-java: Java reader for the MaxMind DB format · GitHub
In such applications, we suggest creating one Reader object and sharing that among threads. By default, this API uses the MEMORY_MAP mode, which memory maps the file. On Windows, this may create an exclusive lock on the file that prevents it from being renamed or deleted. Due to the implementation of memory mapping in Java, this lock will not be released when the DatabaseReader is closed; it will only be released when the object and the MappedByteBuffer it uses are garbage collected.
Starred by 129 users
Forked by 50 users
Languages Java 98.2% | Shell 1.8%
Oracle
docs.oracle.com › en › java › javase › 12 › docs › api › java.base › java › io › Reader.html
Reader (Java SE 12 & JDK 12 )
a Reader which reads no characters · Since: 11 · public int read(CharBuffer target) throws IOException · Attempts to read characters into the specified character buffer. The buffer is used as a repository of characters as-is: the only changes made are the results of a put operation.
OpenJDK
cr.openjdk.org › ~jlaskey › templates › docs › api › java.base › java › io › FileReader.html
FileReader (Java SE 21 & JDK 21 [ad-hoc build])
java.io.Reader · java.io.InputStreamReader · java.io.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 ...
Java
download.java.net › java › early_access › panama › docs › api › java.base › java › io › Reader.html
Reader (Java SE 19 & JDK 19 [build 1])
a Reader which reads no characters · Since: 11 · public int read · (CharBuffer target) throws IOException · Attempts to read characters into the specified character buffer. The buffer is used as a repository of characters as-is: the only changes made are the results of a put operation.