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(java.io.InputStream inputStream) |
UnsyncBufferedInputStream(java.io.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(java.io.InputStream inputStream)
public UnsyncBufferedInputStream(java.io.InputStream inputStream, int size)
public int available() throws java.io.IOException
available
in class UnsyncFilterInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class UnsyncFilterInputStream
java.io.IOException
public void mark(int readLimit)
mark
in class UnsyncFilterInputStream
public boolean markSupported()
markSupported
in class UnsyncFilterInputStream
public int read() throws java.io.IOException
read
in class UnsyncFilterInputStream
java.io.IOException
public int read(byte[] bytes) throws java.io.IOException
read
in class UnsyncFilterInputStream
java.io.IOException
public int read(byte[] bytes, int offset, int length) throws java.io.IOException
read
in class UnsyncFilterInputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class UnsyncFilterInputStream
java.io.IOException
public long skip(long skip) throws java.io.IOException
skip
in class UnsyncFilterInputStream
java.io.IOException
protected void fillInBuffer() throws java.io.IOException
java.io.IOException
protected int readOnce(byte[] bytes, int offset, int length) throws java.io.IOException
java.io.IOException