Пример #1
0
 /**
  * Frees all objects allocated by the inflater.  There's no reason
  * to call this, since you can just rely on garbage collection (even
  * for the Sun implementation).  Exists only for compatibility
  * with Sun's JDK, where the compressor allocates native memory.
  * If you call any method (even reset) afterwards the behaviour is
  * <i>undefined</i>.  
  */
 public void end()
 {
     outputWindow = null;
     input = null;
     dynHeader = null;
     litlenTree = null;
     distTree = null;
     adler = null;
 }
Пример #2
0
 public Inflater(bool nowrap)
 {
     this.nowrap = nowrap;
     this.adler = new Adler32();
     input = new StreamManipulator();
     outputWindow = new OutputWindow();
     mode = nowrap ? DECODE_BLOCKS : DECODE_HEADER;
 }