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