PushbackReader (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Closeable, AutoCloseable, Readable
-
Field Summary
-
Constructor Summary
Constructors
Creates a new pushback reader with a one-character pushback buffer.
Creates a new pushback reader with a pushback buffer of the given size.
-
Method Summary
voidclose()Closes the stream and releases any system resources associated with it.
voidmark(int readAheadLimit) Marks the present position in the stream.
booleanTells whether this stream supports the mark() operation, which it does not.
intread()Reads a single character.
booleanready()Tells whether this stream is ready to be read.
voidreset()voidunread(char[] cbuf) Pushes back an array of characters by copying it to the front of the pushback buffer.
voidunread(char[] cbuf, int off, int len) Pushes back a portion of an array of characters by copying it to the front of the pushback buffer.
voidunread(int c) Pushes back a single character by copying it to the front of the pushback buffer.
-
Constructor Details
-
PushbackReader
-
PushbackReader
-
-
Method Details
-
read
-
unread
-
unread
-
unread
-
ready
-
mark
-
reset
-
markSupported
-
close
-