Package ucar.unidata.io.bzip2
Class CBZip2InputStream
- java.lang.Object
-
- java.io.InputStream
-
- ucar.unidata.io.bzip2.CBZip2InputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,BZip2Constants
public class CBZip2InputStream extends InputStream implements BZip2Constants
An input stream that decompresses from the BZip2 format (without the file header chars) to be read as any other stream.
-
-
Field Summary
-
Fields inherited from interface ucar.unidata.io.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()
CBZip2InputStream(InputStream zStream)
CBZip2InputStream(InputStream zStream, boolean skip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
Reads the stream.void
setStream(InputStream zStream)
Added 5-30-2006 to allow for resetting of the input used by this object.-
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()
-
CBZip2InputStream
public CBZip2InputStream(InputStream zStream)
-
CBZip2InputStream
public CBZip2InputStream(InputStream zStream, boolean skip) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setStream
public void setStream(InputStream zStream)
Added 5-30-2006 to allow for resetting of the input used by this object. This saves in memory allocation costs
-
read
public int read()
Reads the stream.- Specified by:
read
in classInputStream
- Throws:
BZip2ReadException
- if there is a problem. InputStream does not throw an IOException, so we throw a RuntimeException.
-
-