Class UncompressInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
uk.ac.starlink.util.UncompressInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
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.
- Version:
- 0.3-3 06/05/2001
- Author:
- Ronald Tschalär, Unidata Program Center
-
Field Summary
Fields inherited from class FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FilterInputStream
close, mark, read, resetMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
UncompressInputStream
- Parameters:
is- the input stream to decompress- Throws:
IOException- if the header is malformed
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()This stream does not support mark/reset on the stream.- Overrides:
markSupportedin classFilterInputStream- Returns:
- false
-
main
-