rabbit.zip
Class DeCompressor

java.lang.Object
  extended by rabbit.zip.DeCompressor

public class DeCompressor
extends Object

GZipState for uncompressing the 'deflate' data

Author:
Rick Leir

Constructor Summary
DeCompressor(GZipUnpackListener listener)
           
 
Method Summary
 void handleBuffer(GZipUnpacker unpacker, byte[] buf, int off, int len)
          Handle a buffer.
 void handleCurrentData(GZipUnpacker unpacker)
          Handle the next block of the current data.
 boolean needsInput()
          Check if the unpacker currently needs more data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeCompressor

public DeCompressor(GZipUnpackListener listener)
Method Detail

needsInput

public boolean needsInput()
Check if the unpacker currently needs more data


handleBuffer

public void handleBuffer(GZipUnpacker unpacker,
                         byte[] buf,
                         int off,
                         int len)
Handle a buffer.

buf - the data to be handled.
off - the start offset of the data.
len - the length of the data.

handleCurrentData

public void handleCurrentData(GZipUnpacker unpacker)
Handle the next block of the current data.