public class UncompressInputStream extends 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(InputStream is) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
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(String fileInName,
FileOutputStream out) |
close, mark, read, reset
public UncompressInputStream(InputStream is) throws IOException
is
- the input stream to decompressIOException
- if the header is malformedpublic int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long num) throws IOException
skip
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
public static void uncompress(String fileInName, FileOutputStream out) throws IOException
IOException