Class CentralDirectoryHeaderCompressInfo
- java.lang.Object
-
- com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
-
public class CentralDirectoryHeaderCompressInfo extends java.lang.ObjectInformation stored in theCentralDirectoryHeaderthat is related to compression and may need to be computed lazily.
-
-
Field Summary
Fields Modifier and Type Field Description static longVERSION_WITH_CENTRAL_FILE_ENCRYPTIONVersion of zip file that uses central file encryption and version 2 of the Zip64 EOCDstatic longVERSION_WITH_DIRECTORIES_AND_DEFLATEVersion of zip file that only supports directories and deflated files.static longVERSION_WITH_STORE_FILES_ONLYVersion of zip file that only supports stored files.static longVERSION_WITH_ZIP64_EXTENSIONSVersion of zip file that only supports ZIP64 format extensions
-
Constructor Summary
Constructors Constructor Description CentralDirectoryHeaderCompressInfo(CentralDirectoryHeader header, CompressionMethod method, long compressedSize)Creates new compression information for the central directory header.CentralDirectoryHeaderCompressInfo(CompressionMethod method, long compressedSize, long versionToExtract)Creates new compression information for the central directory header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCompressedSize()Obtains the compression data size.CompressionMethodgetMethod()Obtains the compression method.
-
-
-
Field Detail
-
VERSION_WITH_STORE_FILES_ONLY
public static final long VERSION_WITH_STORE_FILES_ONLY
Version of zip file that only supports stored files.- See Also:
- Constant Field Values
-
VERSION_WITH_DIRECTORIES_AND_DEFLATE
public static final long VERSION_WITH_DIRECTORIES_AND_DEFLATE
Version of zip file that only supports directories and deflated files.- See Also:
- Constant Field Values
-
VERSION_WITH_ZIP64_EXTENSIONS
public static final long VERSION_WITH_ZIP64_EXTENSIONS
Version of zip file that only supports ZIP64 format extensions- See Also:
- Constant Field Values
-
VERSION_WITH_CENTRAL_FILE_ENCRYPTION
public static final long VERSION_WITH_CENTRAL_FILE_ENCRYPTION
Version of zip file that uses central file encryption and version 2 of the Zip64 EOCD- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CentralDirectoryHeaderCompressInfo
public CentralDirectoryHeaderCompressInfo(CompressionMethod method, long compressedSize, long versionToExtract)
Creates new compression information for the central directory header.- Parameters:
method- the compression methodcompressedSize- the compressed sizeversionToExtract- minimum version to extract (typicallyVERSION_WITH_STORE_FILES_ONLYorVERSION_WITH_DIRECTORIES_AND_DEFLATE)
-
CentralDirectoryHeaderCompressInfo
public CentralDirectoryHeaderCompressInfo(CentralDirectoryHeader header, CompressionMethod method, long compressedSize)
Creates new compression information for the central directory header.- Parameters:
header- the header this information relates tomethod- the compression methodcompressedSize- the compressed size
-
-
Method Detail
-
getCompressedSize
public long getCompressedSize()
Obtains the compression data size.- Returns:
- the compressed data size
-
getMethod
public CompressionMethod getMethod()
Obtains the compression method.- Returns:
- the compression method
-
-