org.apache.commons.compress.compressors.bzip2
Class BZip2CompressorInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.compress.compressors.CompressorInputStream
org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class BZip2CompressorInputStream
- extends CompressorInputStream
An input stream that decompresses from the BZip2 format to be read as any other stream.
Constructor Summary |
BZip2CompressorInputStream(java.io.InputStream in)
Constructs a new BZip2CompressorInputStream which decompresses bytes read from the
specified stream. |
Method Summary |
void |
close()
|
int |
read()
|
int |
read(byte[] dest,
int offs,
int len)
|
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASEBLOCKSIZE
public static final int BASEBLOCKSIZE
- See Also:
- Constant Field Values
MAX_ALPHA_SIZE
public static final int MAX_ALPHA_SIZE
- See Also:
- Constant Field Values
MAX_CODE_LEN
public static final int MAX_CODE_LEN
- See Also:
- Constant Field Values
RUNA
public static final int RUNA
- See Also:
- Constant Field Values
RUNB
public static final int RUNB
- See Also:
- Constant Field Values
N_GROUPS
public static final int N_GROUPS
- See Also:
- Constant Field Values
G_SIZE
public static final int G_SIZE
- See Also:
- Constant Field Values
N_ITERS
public static final int N_ITERS
- See Also:
- Constant Field Values
MAX_SELECTORS
public static final int MAX_SELECTORS
- See Also:
- Constant Field Values
NUM_OVERSHOOT_BYTES
public static final int NUM_OVERSHOOT_BYTES
- See Also:
- Constant Field Values
BZip2CompressorInputStream
public BZip2CompressorInputStream(java.io.InputStream in)
throws java.io.IOException
- Constructs a new BZip2CompressorInputStream which decompresses bytes read from the
specified stream.
- Throws:
java.io.IOException
- if the stream content is malformed or an I/O error occurs.
java.lang.NullPointerException
- if in == null
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] dest,
int offs,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- Throws:
java.io.IOException