Optional
bufferedtrue
to write entry data in a buffer before appending it to the zip file.
bufferedWrite
is automatically set to true
when compressing more than one entry in parallel.
Optional
compressionThe compression method (e.g. 8 for DEFLATE, 0 for STORE).
Optional
creationThe creation date.
This option is ignored if the ZipWriterConstructorOptions#extendedTimestamp option is set to false
.
Optional
datatrue
to add a data descriptor.
When set to false
, the ZipWriterConstructorOptions#bufferedWrite option will automatically be set to true
.
Optional
datatrue
to add the signature of the data descriptor.
Optional
encryptedtrue
to write encrypted data when passThrough
is set to true
.
Optional
encryptionThe encryption strength (AES).
Optional
extendedtrue
to store extended timestamp extra fields.
When set to false
, the maximum last modification date cannot exceed November 31, 2107 and the maximum accuracy is 2 seconds.
Optional
externalThe external file attribute.
Optional
internalThe internal file attribute.
Optional
keeptrue
to keep the order of the entry physically in the zip file.
When set to true
, the use of web workers will be improved. However, it also prevents files larger than 4GB from being created without setting the zip64
option to true
explicitly.
Another solution to improve the use of web workers is to add entries from smallest to largest in uncompressed size.
Optional
lastThe last access date.
This option is ignored if the ZipWriterConstructorOptions#extendedTimestamp option is set to false
.
Optional
lastThe last modification date.
Optional
levelThe level of compression.
The minimum value is 0 and means that no compression is applied. The maximum value is 9.
Optional
mimeThe MIME type of the exported data when relevant.
Optional
mstrue
to write EntryMetaData#externalFileAttribute in MS-DOS format for folder entries.
Optional
offsetThe offset of the first entry in the zip file.
Optional
passtrue
to write the data as-is without compressing it and without crypting it.
Optional
passwordThe password used to encrypt the content of the entry.
Optional
preventtrue
to prevent closing of WritableWriter#writable.
Optional
rawThe password used to encrypt the content of the entry (raw).
Optional
readerThe options passed to the Reader instances
Optional
relativetrue
to use filenames relative to the entry instead of full filenames.
Optional
signalThe AbortSignal
instance used to cancel the compression.
Optional
supportfalse
to never write disk numbers in zip64 data.
Optional
usdztrue
to produce zip files compatible with the USDZ specification.
Optional
usetrue
to mark the file names as UTF-8 setting the general purpose bit 11 in the header (see Appendix D - Language Encoding (EFS)), false
to mark the names as compliant with the original IBM Code Page 437.
Note that this does not ensure that the file names are in the correct encoding.
Optional
versionThe "Version" field.
Optional
versionThe "Version made by" field.
Optional
zip64true
to use Zip64 to store the entry.
zip64
is automatically set to true
when necessary (e.g. compressed data larger than 4GB or with unknown size).
Optional
ziptrue
to use the ZipCrypto algorithm to encrypt the content of the entry.
It is not recommended to set zipCrypto
to true
because the ZipCrypto encryption can be easily broken.
Represents the options passed to
{@link ZipDirectoryEntry}#export*()
.