public int deflateEnd(){ if(dstate==null) return Z_STREAM_ERROR; int ret=dstate.deflateEnd(); dstate=null; return ret; } public int deflateParams(int level, int strategy){
public void End() { if (z == null) { return; } z.deflateEnd(); z.free(); z = null; }