ucar.unidata.io.bzip2
Class CBZip2InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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

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
CBZip2InputStream()
           
CBZip2InputStream(InputStream zStream)
           
CBZip2InputStream(InputStream zStream, boolean skip)
           
 
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.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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.