Class CompressionResult
- java.lang.Object
-
- com.android.tools.build.apkzlib.zip.CompressionResult
-
public class CompressionResult extends java.lang.ObjectResult of compressing data.
-
-
Constructor Summary
Constructors Constructor Description CompressionResult(CloseableByteSource source, CompressionMethod method, long size)Creates a new compression result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompressionMethodgetCompressionMethod()Obtains the compression method.longgetSize()Obtains the size of the compression result.CloseableByteSourcegetSource()Obtains the compressed data.
-
-
-
Constructor Detail
-
CompressionResult
public CompressionResult(CloseableByteSource source, CompressionMethod method, long size)
Creates a new compression result.- Parameters:
source- the data sourcemethod- 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
-
-