public class UnsyncByteArrayInputStream
extends InputStream
See https://issues.liferay.com/browse/LPS-6648.
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected int |
capacity |
protected int |
index |
protected int |
markIndex |
Constructor and Description |
---|
UnsyncByteArrayInputStream(byte[] buffer) |
UnsyncByteArrayInputStream(byte[] buffer,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int offset,
int length) |
void |
reset() |
long |
skip(long skip) |
protected byte[] buffer
protected int capacity
protected int index
protected int markIndex
public UnsyncByteArrayInputStream(byte[] buffer)
public UnsyncByteArrayInputStream(byte[] buffer, int offset, int length)
public int available()
available
in class InputStream
public void mark(int readAheadLimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read()
read
in class InputStream
public int read(byte[] bytes)
read
in class InputStream
public int read(byte[] bytes, int offset, int length)
read
in class InputStream
public void reset()
reset
in class InputStream
public long skip(long skip)
skip
in class InputStream