public class UncompressInputStream
extends java.io.FilterInputStream
This version has been modified from the original 0.3-3 version by the Unidata Program Center (support@unidata.ucar.edu) to make the constructor public and to fix a couple of bugs. Also: - markSupported() returns false - add uncompress() static method
Constructor and Description |
---|
UncompressInputStream(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
static void |
main(java.lang.String[] args)
test
|
boolean |
markSupported()
This stream does not support mark/reset on the stream.
|
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
long |
skip(long num) |
static void |
uncompress(java.lang.String fileInName,
java.io.FileOutputStream out) |
public UncompressInputStream(java.io.InputStream is) throws java.io.IOException
is
- the input stream to decompressjava.io.IOException
- if the header is malformedpublic int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long num) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public static void uncompress(java.lang.String fileInName, java.io.FileOutputStream out) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception