ucar.unidata.io.bzip2
Class CBZip2InputStream
java.lang.Object
java.io.InputStream
ucar.unidata.io.bzip2.CBZip2InputStream
- All Implemented Interfaces:
- Closeable, 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.
- Author:
- Keiron Liddle
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 |
Method Summary |
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CBZip2InputStream
public CBZip2InputStream()
CBZip2InputStream
public CBZip2InputStream(InputStream zStream)
CBZip2InputStream
public CBZip2InputStream(InputStream zStream,
boolean skip)
throws IOException
- Throws:
IOException
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 class InputStream
- Throws:
BZip2ReadException
- if there is a problem. InputStream does
not throw an IOException, so we throw a RuntimeException.
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.