BufferedReader (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Closeable, AutoCloseable, Readable
- Direct Known Subclasses:
LineNumberReader
-
Field Summary
-
Constructor Summary
Constructors
Creates a buffering character-input stream that uses a default-sized input buffer.
Creates a buffering character-input stream that uses an input buffer of the specified size.
-
Method Summary
voidclose()Closes the stream and releases any system resources associated with it.
lines()Returns a
Stream, the elements of which are lines read from thisBufferedReader.voidmark(int readAheadLimit) Marks the present position in the stream.
booleanTells whether this stream supports the mark() operation, which it does.
intread()Reads a single character.
intread(char[] cbuf, int off, int len) Reads characters into a portion of an array.
readLine()booleanready()Tells whether this stream is ready to be read.
voidreset()Resets the stream to the most recent mark.
-
Constructor Details
-
BufferedReader
-
BufferedReader
-
-
Method Details
-
read
-
read
-
readLine
-
ready
-
markSupported
-
mark
-
reset
-
close
-
lines
-