public class CentralDirectoryHeaderCompressInfo
extends java.lang.Object
CentralDirectoryHeader that is related to compression and may
need to be computed lazily.| Modifier and Type | Field and Description |
|---|---|
static long |
VERSION_WITH_CENTRAL_FILE_ENCRYPTION
Version of zip file that uses central file encryption and version 2 of the Zip64 EOCD
|
static long |
VERSION_WITH_DIRECTORIES_AND_DEFLATE
Version of zip file that only supports directories and deflated files.
|
static long |
VERSION_WITH_STORE_FILES_ONLY
Version of zip file that only supports stored files.
|
static long |
VERSION_WITH_ZIP64_EXTENSIONS
Version of zip file that only supports ZIP64 format extensions
|
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCompressedSize()
Obtains the compression data size.
|
CompressionMethod |
getMethod()
Obtains the compression method.
|
public static final long VERSION_WITH_STORE_FILES_ONLY
public static final long VERSION_WITH_DIRECTORIES_AND_DEFLATE
public static final long VERSION_WITH_ZIP64_EXTENSIONS
public static final long VERSION_WITH_CENTRAL_FILE_ENCRYPTION
public CentralDirectoryHeaderCompressInfo(CompressionMethod method, long compressedSize, long versionToExtract)
method - the compression methodcompressedSize - the compressed sizeversionToExtract - minimum version to extract (typically VERSION_WITH_STORE_FILES_ONLY or VERSION_WITH_DIRECTORIES_AND_DEFLATE)public CentralDirectoryHeaderCompressInfo(CentralDirectoryHeader header, CompressionMethod method, long compressedSize)
header - the header this information relates tomethod - the compression methodcompressedSize - the compressed sizepublic long getCompressedSize()
public CompressionMethod getMethod()