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 UnsyncFilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class UnsyncFilterInputStreamIOExceptionpublic void mark(int readLimit)
mark in class UnsyncFilterInputStreampublic boolean markSupported()
markSupported in class UnsyncFilterInputStreampublic int read()
throws IOException
read in class UnsyncFilterInputStreamIOExceptionpublic int read(byte[] bytes)
throws IOException
read in class UnsyncFilterInputStreamIOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws IOException
read in class UnsyncFilterInputStreamIOExceptionpublic void reset()
throws IOException
reset in class UnsyncFilterInputStreamIOExceptionpublic long skip(long skip)
throws IOException
skip in class UnsyncFilterInputStreamIOExceptionprotected void fillInBuffer()
throws IOException
IOExceptionprotected int readOnce(byte[] bytes,
int offset,
int length)
throws IOException
IOException