com.limegroup.gnutella.util
Class UncompressingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
com.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.
Fields inherited from class java.util.zip.InflaterInputStream |
buf, inf, len |
Fields inherited from class java.io.FilterInputStream |
in |
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 |
UncompressingInputStream
public UncompressingInputStream(java.io.InputStream in,
java.util.zip.Inflater flate)
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException