org.jets3t.service.io
Class GZipDeflatingInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.jets3t.service.io.GZipDeflatingInputStream
All Implemented Interfaces:
InputStreamWrapper

public class GZipDeflatingInputStream
extends java.io.InputStream
implements InputStreamWrapper

Input stream that wraps another stream and deflates (compresses) the underlying stream's data on-the-fly. This class provides only a basic implementation of GZip functionality.


Constructor Summary
GZipDeflatingInputStream(java.io.InputStream inputStream)
           
 
Method Summary
 int available()
           
 void close()
           
 java.io.InputStream getWrappedInputStream()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZipDeflatingInputStream

public GZipDeflatingInputStream(java.io.InputStream inputStream)
                         throws java.io.IOException
Method Detail

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

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

available

public int available()
              throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getWrappedInputStream

public java.io.InputStream getWrappedInputStream()
Specified by:
getWrappedInputStream in interface InputStreamWrapper
Returns:
the underlying input stream wrapped by this class.