Example usage for org.apache.commons.compress.archivers.zip StreamCompressor create

List of usage examples for org.apache.commons.compress.archivers.zip StreamCompressor create

Introduction

In this page you can find the example usage for org.apache.commons.compress.archivers.zip StreamCompressor create.

Prototype

public static StreamCompressor create(final int compressionLevel, final ScatterGatherBackingStore bs) 

Source Link

Document

Create a stream compressor with the given compression level.

Usage

From source file:org.codehaus.plexus.archiver.zip.ConcurrentJarCreator.java

public static ScatterZipOutputStream createDeferred(
        ScatterGatherBackingStoreSupplier scatterGatherBackingStoreSupplier) throws IOException {
    ScatterGatherBackingStore bs = scatterGatherBackingStoreSupplier.get();
    StreamCompressor sc = StreamCompressor.create(Deflater.DEFAULT_COMPRESSION, bs);
    return new ScatterZipOutputStream(bs, sc);
}