Package de.galan.commons.io.streams
Class GzipAwareInputStream
java.lang.Object
java.io.InputStream
de.galan.commons.io.streams.GzipAwareInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Wraps an InputStream and checks if the stream has been compressed, and optionally decompresses it.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
GzipAwareInputStream
-
GzipAwareInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
isCompressed
- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-