I am attempting to convert the gzipped body of a HTTP response to plaintext. I\'ve taken the byte array of this response and converted it to a ByteArrayInputStream. I\'ve th
you can also do
try (GZIPInputStream gzipIn = new GZIPInputStream(new ByteArrayInputStream(pByteArray))) { .... }
AutoClosable is a good thing https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html