Package ucar.unidata.io
Class UncompressInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- ucar.unidata.io.UncompressInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
@Deprecated public class UncompressInputStream extends FilterInputStream
Deprecated.not part of public API.This class decompresses an input stream containing data compressed with the unix "compress" utility (LZC, a LZW variant). This code is based heavily on the unlzw.c code in gzip-1.2.4 (written by Peter Jannesen) and the original compress code.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
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description UncompressInputStream(InputStream is)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
available()
Deprecated.boolean
markSupported()
Deprecated.This stream does not support mark/reset on the stream.int
read()
Deprecated.int
read(byte[] buf, int off, int len)
Deprecated.long
skip(long num)
Deprecated.static void
uncompress(String fileInName, FileOutputStream out)
Deprecated.-
Methods inherited from class java.io.FilterInputStream
close, mark, read, reset
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
UncompressInputStream
public UncompressInputStream(InputStream is) throws IOException
Deprecated.- Parameters:
is
- the input stream to decompress- Throws:
IOException
- if the header is malformed
-
-
Method Detail
-
read
public int read() throws IOException
Deprecated.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] buf, int off, int len) throws IOException
Deprecated.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
public long skip(long num) throws IOException
Deprecated.- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
available
public int available() throws IOException
Deprecated.- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()
Deprecated.This stream does not support mark/reset on the stream.- Overrides:
markSupported
in classFilterInputStream
- Returns:
- false
-
uncompress
public static void uncompress(String fileInName, FileOutputStream out) throws IOException
Deprecated.- Throws:
IOException
-
-