org.jets3t.service.io
Class GZipDeflatingInputStream
java.lang.Object
java.io.InputStream
org.jets3t.service.io.GZipDeflatingInputStream
- All Implemented Interfaces:
- java.io.Closeable, 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.
- Author:
- James Murty
Methods inherited from class java.io.InputStream |
mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GZipDeflatingInputStream
public GZipDeflatingInputStream(java.io.InputStream inputStream)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Overrides:
available
in class java.io.InputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- 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.