public class UnsyncBufferedInputStream extends UnsyncFilterInputStream
See https://issues.liferay.com/browse/LPS-6648.
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected int |
firstInvalidIndex |
protected int |
index |
protected int |
markLimitIndex |
inputStream
Constructor and Description |
---|
UnsyncBufferedInputStream(InputStream inputStream) |
UnsyncBufferedInputStream(InputStream inputStream,
int size) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
protected void |
fillInBuffer() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int offset,
int length) |
protected int |
readOnce(byte[] bytes,
int offset,
int length) |
void |
reset() |
long |
skip(long skip) |
protected byte[] buffer
protected int firstInvalidIndex
protected int index
protected int markLimitIndex
public UnsyncBufferedInputStream(InputStream inputStream)
public UnsyncBufferedInputStream(InputStream inputStream, int size)
public int available() throws IOException
available
in class UnsyncFilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class UnsyncFilterInputStream
IOException
public void mark(int readLimit)
mark
in class UnsyncFilterInputStream
public boolean markSupported()
markSupported
in class UnsyncFilterInputStream
public int read() throws IOException
read
in class UnsyncFilterInputStream
IOException
public int read(byte[] bytes) throws IOException
read
in class UnsyncFilterInputStream
IOException
public int read(byte[] bytes, int offset, int length) throws IOException
read
in class UnsyncFilterInputStream
IOException
public void reset() throws IOException
reset
in class UnsyncFilterInputStream
IOException
public long skip(long skip) throws IOException
skip
in class UnsyncFilterInputStream
IOException
protected void fillInBuffer() throws IOException
IOException
protected int readOnce(byte[] bytes, int offset, int length) throws IOException
IOException