Example #1
0
 /**
  * Resets the {@code Deflater} to accept new input without affecting any previous compression
  * strategy or level settings. This operation <i>must</i> be called after {@link #finished}
  * returns true if the {@code Deflater} is to be reused.
  */
 public synchronized void reset() {
   checkOpen();
   flushParm = NO_FLUSH;
   finished = false;
   resetImpl(streamHandle);
   inputBuffer = null;
 }