I am trying to write a function which will accept an InputStream with zipped file data and would return another InputStream with unzipped data.
InputStream
It is on scala syntax:
def unzipByteArray(input: Array[Byte]): String = { val zipInputStream = new ZipInputStream(new ByteArrayInputStream(input)) val entry = zipInputStream.getNextEntry IOUtils.toString(zipInputStream, StandardCharsets.UTF_8) }