Class CompressionResult


  • public class CompressionResult
    extends java.lang.Object
    Result of compressing data.
    • Constructor Detail

      • CompressionResult

        public CompressionResult​(CloseableByteSource source,
                                 CompressionMethod method,
                                 long size)
        Creates a new compression result.
        Parameters:
        source - the data source
        method - the compression method
    • Method Detail

      • getCompressionMethod

        public CompressionMethod getCompressionMethod()
        Obtains the compression method.
        Returns:
        the compression method
      • getSource

        public CloseableByteSource getSource()
        Obtains the compressed data.
        Returns:
        the data, the resulting array should not be modified
      • getSize

        public long getSize()
        Obtains the size of the compression result.
        Returns:
        the size