org.apache.commons.compress.archivers.zip

Class StreamCompressor

    • Method Detail

      • create

        public static StreamCompressor create(int compressionLevel,                      ScatterGatherBackingStore bs)
        Create a stream compressor with the given compression level.
        Parameters:
        compressionLevel - The Deflater compression level
        bs - The ScatterGatherBackingStore to receive output
        Returns:
        A stream compressor
      • getCrc32

        public long getCrc32()
        The crc32 of the last deflated file
        Returns:
        the crc32
      • getBytesRead

        public long getBytesRead()
        Return the number of bytes read from the source stream
        Returns:
        The number of bytes read, never negative
      • getBytesWrittenForLastEntry

        public long getBytesWrittenForLastEntry()
        The number of bytes written to the output for the last entry
        Returns:
        The number of bytes, never negative
      • getTotalBytesWritten

        public long getTotalBytesWritten()
        The total number of bytes written to the output for all files
        Returns:
        The number of bytes, never negative
      • deflate

        public void deflate(InputStream source,           int method)             throws IOException
        Deflate the given source using the supplied compression method
        Parameters:
        source - The source to compress
        method - The #ZipArchiveEntry compression method
        Throws:
        IOException - When failures happen

Copyright © 2016 The Apache Software Foundation. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14