com.limegroup.gnutella.util
Class UncompressingInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byjava.util.zip.InflaterInputStream
              extended bycom.limegroup.gnutella.util.UncompressingInputStream

public final class UncompressingInputStream
extends java.util.zip.InflaterInputStream

The counterpart to CompressingOutputStream. This class extends InflaterInputStream solely to catch the potential NPE that can occur during the native inflateBytes call if we have concurrently closed the stream.


Field Summary
 
Fields inherited from class java.util.zip.InflaterInputStream
buf, inf, len
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UncompressingInputStream(java.io.InputStream in, java.util.zip.Inflater flate)
           
 
Method Summary
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.util.zip.InflaterInputStream
available, close, fill, read, skip
 
Methods inherited from class java.io.FilterInputStream
mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UncompressingInputStream

public UncompressingInputStream(java.io.InputStream in,
                                java.util.zip.Inflater flate)
Method Detail

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException