Here you can find the source of decompress(byte[] src, Inflater decompresser, int compressCycleSize)
private static byte[] decompress(byte[] src, Inflater decompresser, int compressCycleSize) throws Exception
//package com.java2s; /**/*from w w w .j ava 2s . com*/ * okuyama???????????????Api??????????????????.<br> * * @author T.Okuyama * @license GPL(Lv3) */ import java.io.*; import java.util.zip.*; public class Main { private static byte[] decompress(byte[] src, Inflater decompresser, int compressCycleSize) throws Exception { ByteArrayOutputStream decompos = new ByteArrayOutputStream(); try { decompresser.setInput(src); byte[] buf = new byte[compressCycleSize]; int count = 0; while (!decompresser.finished()) { count = decompresser.inflate(buf); decompos.write(buf, 0, count); } return decompos.toByteArray(); } catch (Exception e) { throw e; } } }