I am trying to write a function which will accept an InputStream
with zipped file data and would return another InputStream
with unzipped data.
If you can change the input data I would suggested you to use GZIPInputStream
.
GZipInputStream
is different from ZipInputStream
since you only have one data inside it. So the whole input stream represents the whole file. In ZipInputStream
the whole stream contains also the structure of the file(s) inside it, which can be many.