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, resetpublic UncompressInputStream(InputStream is) throws IOException
is - the input stream to decompressIOException - if the header is malformedpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long num)
throws IOException
skip in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic static void uncompress(String fileInName, FileOutputStream out) throws IOException
IOException