public class LzoInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
in |
protected byte[] |
inputBuffer |
protected byte[] |
outputBuffer |
protected lzo_uintp |
outputBufferLen |
protected int |
outputBufferPos |
| Constructor and Description |
|---|
LzoInputStream(InputStream in,
LzoDecompressor decompressor) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
protected void |
decompress(int outputBufferLength,
int inputBufferLength) |
protected void |
logState(String when) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
protected boolean |
readBlock() |
protected void |
readBytes(byte[] buf,
int off,
int length) |
protected int |
readInt(boolean start_of_frame) |
void |
setInputBufferSize(int inputBufferSize) |
void |
setOutputBufferSize(int outputBufferSize) |
mark, markSupported, reset, skipprotected final InputStream in
protected byte[] inputBuffer
protected byte[] outputBuffer
protected int outputBufferPos
protected final lzo_uintp outputBufferLen
public LzoInputStream(@Nonnull InputStream in, @Nonnull LzoDecompressor decompressor)
public void setInputBufferSize(@Nonnegative int inputBufferSize)
public void setOutputBufferSize(@Nonnegative int outputBufferSize)
public int available() throws IOException
available in class InputStreamIOExceptionpublic int read() throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b) throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class InputStreamIOExceptionprotected boolean readBlock() throws IOException
IOExceptionprotected void decompress(@Nonnegative int outputBufferLength, @Nonnegative int inputBufferLength) throws IOException
IOException@CheckForSigned protected int readInt(boolean start_of_frame) throws IOException
IOExceptionprotected void readBytes(@Nonnull byte[] buf, @Nonnegative int off, @Nonnegative int length) throws IOException
IOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException