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

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

Introduction

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

The text is from its open source code.

Constructor

PushbackInputStream(InputStream in)
Creates a PushbackInputStream with a 1-byte pushback buffer, and saves its argument, the input stream in, for later use.
PushbackInputStream(InputStream in, int size)
Creates a PushbackInputStream with a pushback buffer of the specified size, and saves its argument, the input stream in, for later use.

Method

intavailable()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.
voidclose()
Closes this input stream and releases any system resources associated with the stream.
voidmark(int readlimit)
Marks the current position in this input stream.
booleanmarkSupported()
Tests if this input stream supports the mark and reset methods, which it does not.
intread()
Reads the next byte of data from this input stream.
intread(byte[] b, int off, int len)
Reads up to len bytes of data from this input stream into an array of bytes.
intread(byte b[])
Reads up to b.length bytes of data from this input stream into an array of bytes.
voidreset()
Repositions this stream to the position at the time the mark method was last called on this input stream.
longskip(long n)
Skips over and discards n bytes of data from this input stream.
voidunread(int b)
Pushes back a byte by copying it to the front of the pushback buffer.
voidunread(byte[] b)
Pushes back an array of bytes by copying it to the front of the pushback buffer.
voidunread(byte[] b, int off, int len)
Pushes back a portion of an array of bytes by copying it to the front of the pushback buffer.