Java java.io PushbackReader fields, constructors, methods, implement or subclass

Example usage for Java java.io PushbackReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io PushbackReader.

The text is from its open source code.

Constructor

PushbackReader(Reader in, int size)
Creates a new pushback reader with a pushback buffer of the given size.
PushbackReader(Reader in)
Creates a new pushback reader with a one-character pushback buffer.

Method

voidclose()
Closes the stream and releases any system resources associated with it.
voidmark(int readAheadLimit)
Marks the present position in the stream.
booleanmarkSupported()
Tells whether this stream supports the mark() operation, which it does not.
intread(java.nio.CharBuffer target)
Attempts to read characters into the specified character buffer.
intread()
Reads a single character.
booleanready()
Tells whether this stream is ready to be read.
voidreset()
Resets the stream.
longskip(long n)
Skips characters.
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.
voidunread(char cbuf[])
Pushes back an array of characters by copying it to the front of the pushback buffer.