public void init() {
if (cStream != null) {
return;
}
// can't call: cStream.free(); - will kill the adler, NPE
cStream = new ZStream();
// BEST_COMRESSION results in 256Kb per Deflate
// 15 == default = 32k window
cStream.deflateInit(JZlib.Z_BEST_SPEED, 10);
dStream = new ZStream();
dStream.inflateInit();
}