@Test public void testRelease() { compressor.setCaching(true); Deflater deflater1 = compressor.createOrResetDeflater(); compressor.release(); Deflater deflater2 = compressor.createOrResetDeflater(); Assert.assertNotSame(deflater1, deflater2); }
public void release() { if (deflater != null) { deflater.end(); deflater = null; } }
DeflateCompressor implements Compressor { public void release() { if (deflater != null) { deflater.end(); deflater = null; } } }
DeflateCompressor implements Compressor { public void release() { if (deflater != null) { deflater.end(); deflater = null; } }  }
DeflateCompressor implements Compressor { public void release() { if (deflater != null) { deflater.end(); deflater = null; } }  boolean isNowrap(); void setNowrap(boolean nowrap); int getCompressionLevel(); void setCompressionLevel(int compressionLevel); int getStrategy(); void setStrategy(int strategy); int getInputBufferSize(); void setInputBufferSize(int inputBufferSize); int getOutputBufferSize(); void setOutputBufferSize(int outputBufferSize); boolean isCaching(); void setCaching(boolean caching); void release(); @Override void compress(InputStream uncompressedIn, OutputStream compressedOut); }
DeflateCompressor implements Compressor { public void release() { if (deflater != null) { deflater.end(); deflater = null; } }  boolean isNowrap(); void setNowrap(boolean nowrap); int getCompressionLevel(); void setCompressionLevel(int compressionLevel); int getStrategy(); void setStrategy(int strategy); int getInputBufferSize(); void setInputBufferSize(int inputBufferSize); int getOutputBufferSize(); void setOutputBufferSize(int outputBufferSize); boolean isCaching(); void setCaching(boolean caching); void release(); @Override void compress(InputStream uncompressedIn, OutputStream compressedOut);  }