public class DynamicPushbackInputStream extends PushbackInputStream
buf, posin| Constructor and Description |
|---|
DynamicPushbackInputStream(InputStream in) |
DynamicPushbackInputStream(InputStream in,
int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
clear()
Clear the buffer
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
shrink()
Shrink the buffer.
|
long |
skip(long n) |
void |
unread(byte[] b,
int off,
int len) |
void |
unread(int b) |
available, close, mark, markSupported, reset, unreadreadpublic DynamicPushbackInputStream(InputStream in)
public DynamicPushbackInputStream(InputStream in, int initialSize)
public int clear()
public int shrink()
public void unread(byte[] b,
int off,
int len)
throws IOException
unread in class PushbackInputStreamIOExceptionpublic void unread(int b)
throws IOException
unread in class PushbackInputStreamIOExceptionpublic int read()
throws IOException
read in class PushbackInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class PushbackInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class PushbackInputStreamIOExceptionCopyright © 2016 The Apache Software Foundation. All Rights Reserved.