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.
|
ByteTracker |
getTracker()
Obtains the ZFile's byte tracker.
|
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 |
setVerifyLogFactory(java.util.function.Supplier<VerifyLog> verifyLogFactory)
Sets the verification log factory.
|
public ZFileOptions()
@Nonnull public ByteTracker getTracker()
@Nonnull public Compressor getCompressor()
public ZFileOptions setCompressor(@Nonnull Compressor compressor)
compressor - the compressorpublic boolean getNoTimestamps()
public ZFileOptions setNoTimestamps(boolean noTimestamps)
noTimestamps - should timestamps be zeroed?@Nonnull public AlignmentRule getAlignmentRule()
public ZFileOptions setAlignmentRule(@Nonnull 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(@Nonnull java.util.function.Supplier<VerifyLog> verifyLogFactory)
verifyLogFactory - verification log factory@Nonnull public java.util.function.Supplier<VerifyLog> getVerifyLogFactory()