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, skip
protected 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 InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
protected boolean readBlock() throws IOException
IOException
protected void decompress(@Nonnegative int outputBufferLength, @Nonnegative int inputBufferLength) throws IOException
IOException
@CheckForSigned protected int readInt(boolean start_of_frame) throws IOException
IOException
protected void readBytes(@Nonnull byte[] buf, @Nonnegative int off, @Nonnegative int length) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException