Package org.bouncycastle.apache.bzip2
Class CBZip2InputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.bouncycastle.apache.bzip2.CBZip2InputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,BZip2Constants
public class CBZip2InputStream extends InputStream implements BZip2Constants
An input stream that decompresses from the BZip2 format (with the file header chars) to be read as any other stream.- Author:
- Keiron Liddle NB: note this class has been modified to read the leading BZ from the start of the BZIP2 stream to make it compatible with other PGP programs.
-
-
Field Summary
-
Fields inherited from interface org.bouncycastle.apache.bzip2.BZip2Constants
baseBlockSize, G_SIZE, MAX_ALPHA_SIZE, MAX_CODE_LEN, MAX_SELECTORS, N_GROUPS, N_ITERS, NUM_OVERSHOOT_BYTES, rNums, RUNA, RUNB
-
-
Constructor Summary
Constructors Constructor Description CBZip2InputStream(InputStream zStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
CBZip2InputStream
public CBZip2InputStream(InputStream zStream) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public int read()
- Specified by:
read
in classInputStream
-
-