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 InputStreampublic void mark(int readAheadLimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
read in class InputStreampublic int read(byte[] bytes)
read in class InputStreampublic int read(byte[] bytes,
int offset,
int length)
read in class InputStreampublic void reset()
reset in class InputStreampublic long skip(long skip)
skip in class InputStream