@Override public void end() { if (stream != 0) { end(stream); stream = 0; } }
/** * Prepare the compressor to be used in a new stream with settings defined in * the given Configuration. It will reset the compressor's compression level * and compression strategy. * * @param conf Configuration storing new settings */ @Override public void reinit(Configuration conf) { reset(); if (conf == null) { return; } end(stream); level = ZlibFactory.getCompressionLevel(conf); strategy = ZlibFactory.getCompressionStrategy(conf); stream = init(level.compressionLevel(), strategy.compressionStrategy(), windowBits.windowBits()); if(LOG.isDebugEnabled()) { LOG.debug("Reinit compressor with new compression configuration"); } }
@Override public void end() { if (stream != 0) { end(stream); stream = 0; } }
@Override public void end() { if (stream != 0) { end(stream); stream = 0; } }
@Override public void end() { if (stream != 0) { end(stream); stream = 0; } }
public synchronized void end() { if (stream != 0) { end(stream); stream = 0; } }
@Override public void end() { if (stream != 0) { end(stream); stream = 0; } }
public synchronized void end() { if (stream != 0) { end(stream); stream = 0; } }
/** * Prepare the compressor to be used in a new stream with settings defined in * the given Configuration. It will reset the compressor's compression level * and compression strategy. * * @param conf Configuration storing new settings */ @Override public void reinit(Configuration conf) { reset(); if (conf == null) { return; } end(stream); level = ZlibFactory.getCompressionLevel(conf); strategy = ZlibFactory.getCompressionStrategy(conf); stream = init(level.compressionLevel(), strategy.compressionStrategy(), windowBits.windowBits()); if(LOG.isDebugEnabled()) { LOG.debug("Reinit compressor with new compression configuration"); } }
/** * Prepare the compressor to be used in a new stream with settings defined in * the given Configuration. It will reset the compressor's compression level * and compression strategy. * * @param conf Configuration storing new settings */ @Override public void reinit(Configuration conf) { reset(); if (conf == null) { return; } end(stream); level = ZlibFactory.getCompressionLevel(conf); strategy = ZlibFactory.getCompressionStrategy(conf); stream = init(level.compressionLevel(), strategy.compressionStrategy(), windowBits.windowBits()); if(LOG.isDebugEnabled()) { LOG.debug("Reinit compressor with new compression configuration"); } }
/** * Prepare the compressor to be used in a new stream with settings defined in * the given Configuration. It will reset the compressor's compression level * and compression strategy. * * @param conf Configuration storing new settings */ @Override public void reinit(Configuration conf) { reset(); if (conf == null) { return; } end(stream); level = ZlibFactory.getCompressionLevel(conf); strategy = ZlibFactory.getCompressionStrategy(conf); stream = init(level.compressionLevel(), strategy.compressionStrategy(), windowBits.windowBits()); if(LOG.isDebugEnabled()) { LOG.debug("Reinit compressor with new compression configuration"); } }
/** * Prepare the compressor to be used in a new stream with settings defined in * the given Configuration. It will reset the compressor's compression level * and compression strategy. * * @param conf Configuration storing new settings */ @Override public void reinit(Configuration conf) { reset(); if (conf == null) { return; } end(stream); level = ZlibFactory.getCompressionLevel(conf); strategy = ZlibFactory.getCompressionStrategy(conf); stream = init(level.compressionLevel(), strategy.compressionStrategy(), windowBits.windowBits()); if(LOG.isDebugEnabled()) { LOG.debug("Reinit compressor with new compression configuration"); } }