List of utility methods to do Ungzip Byte Array
String | ungzipPayload(byte[] compressed) ungzip Payload try { if ((compressed == null) || (compressed.length == 0)) { throw new RuntimeException("Null/empty compressed payload. is_null=" + (compressed == null)); final StringBuilder outStr = new StringBuilder(); final GZIPInputStream gis = new GZIPInputStream(new ByteArrayInputStream(compressed)); final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(gis, "UTF-8")); String line; ... |