public class TPushbackInputStream extends TFilterInputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf |
protected int |
pos |
in
Constructor and Description |
---|
TPushbackInputStream(TInputStream in) |
TPushbackInputStream(TInputStream in,
int size) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
void |
reset() |
long |
skip(long count) |
void |
unread(byte[] buffer) |
void |
unread(byte[] buffer,
int offset,
int length) |
void |
unread(int oneByte) |
read
public TPushbackInputStream(TInputStream in)
public TPushbackInputStream(TInputStream in, int size)
public int available() throws IOException
available
in class TFilterInputStream
IOException
public void close() throws IOException
close
in interface TCloseable
close
in interface TAutoCloseable
close
in class TFilterInputStream
IOException
public boolean markSupported()
markSupported
in class TFilterInputStream
public int read() throws IOException
read
in class TFilterInputStream
IOException
public int read(byte[] buffer, int offset, int length) throws IOException
read
in class TFilterInputStream
IOException
public long skip(long count) throws IOException
skip
in class TFilterInputStream
IOException
public void unread(byte[] buffer) throws IOException
IOException
public void unread(byte[] buffer, int offset, int length) throws IOException
IOException
public void unread(int oneByte) throws IOException
IOException
public void mark(int readlimit)
mark
in class TFilterInputStream
public void reset() throws IOException
reset
in class TFilterInputStream
IOException
Copyright © 2019. All rights reserved.