public class ZFileOptions
extends java.lang.Object
ZFile.| Constructor and Description |
|---|
ZFileOptions()
Creates a new options object.
|
| Modifier and Type | Method and Description |
|---|---|
AlignmentRule |
getAlignmentRule()
Obtains the alignment rule.
|
boolean |
getAutoSortFiles()
Obtains whether files should be automatically sorted before updating the zip file.
|
Compressor |
getCompressor()
Obtains the compressor to use.
|
boolean |
getCoverEmptySpaceUsingExtraField()
Obtains whether the extra field should be used to cover empty spaces.
|
boolean |
getNoTimestamps()
Obtains whether timestamps should be zeroed.
|
ByteStorageFactory |
getStorageFactory()
Obtains the ZFile's byte storage factory.
|
ByteTracker |
getTracker()
Deprecated.
|
java.util.function.Supplier<VerifyLog> |
getVerifyLogFactory()
Obtains the verification log factory.
|
ZFileOptions |
setAlignmentRule(AlignmentRule alignmentRule)
Sets the alignment rule.
|
ZFileOptions |
setAutoSortFiles(boolean autoSortFiles)
Sets whether files should be automatically sorted before updating the zip file.
|
ZFileOptions |
setCompressor(Compressor compressor)
Sets the compressor to use.
|
ZFileOptions |
setCoverEmptySpaceUsingExtraField(boolean coverEmptySpaceUsingExtraField)
Sets whether the extra field should be used to cover empty spaces.
|
ZFileOptions |
setNoTimestamps(boolean noTimestamps)
Sets whether timestamps should be zeroed.
|
ZFileOptions |
setStorageFactory(ByteStorageFactory storage)
Sets the byte storage factory to use.
|
ZFileOptions |
setVerifyLogFactory(java.util.function.Supplier<VerifyLog> verifyLogFactory)
Sets the verification log factory.
|
public ZFileOptions()
public ByteStorageFactory getStorageFactory()
@Deprecated public ByteTracker getTracker()
public ZFileOptions setStorageFactory(ByteStorageFactory storage)
storage - the factory to use to create storage for new instances of ZFile created
for these options.public Compressor getCompressor()
public ZFileOptions setCompressor(Compressor compressor)
compressor - the compressorpublic boolean getNoTimestamps()
public ZFileOptions setNoTimestamps(boolean noTimestamps)
noTimestamps - should timestamps be zeroed?public AlignmentRule getAlignmentRule()
public ZFileOptions setAlignmentRule(AlignmentRule alignmentRule)
alignmentRule - the alignment rulepublic boolean getCoverEmptySpaceUsingExtraField()
ZFile for an
explanation on using the extra field for covering empty spaces.public ZFileOptions setCoverEmptySpaceUsingExtraField(boolean coverEmptySpaceUsingExtraField)
ZFile for an
explanation on using the extra field for covering empty spaces.coverEmptySpaceUsingExtraField - should the extra field be used to cover empty spaces?public boolean getAutoSortFiles()
ZFile for an explanation on automatic sorting.public ZFileOptions setAutoSortFiles(boolean autoSortFiles)
ZFile for an explanation on automatic sorting.autoSortFiles - should the file be automatically sorted?public ZFileOptions setVerifyLogFactory(java.util.function.Supplier<VerifyLog> verifyLogFactory)
verifyLogFactory - verification log factorypublic java.util.function.Supplier<VerifyLog> getVerifyLogFactory()