ZipEncoder class

Encode an Archive object into a Zip formatted buffer.

Constructors

ZipEncoder({Encoding filenameEncoding = const Utf8Codec(), String? password})

Properties

filenameEncoding Encoding
final
hashCode int
The hash code for this object.
no setterinherited
password String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addFile(ArchiveFile file, {bool autoClose = true}) → void
encode(Archive archive, {int level = Deflate.BEST_SPEED, OutputStreamBase? output, DateTime? modified, bool autoClose = true}) List<int>?
endEncode({String? comment = ''}) → void
getFileCrc32(ArchiveFile file) int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startEncode(OutputStreamBase? output, {int? level = Deflate.BEST_SPEED, DateTime? modified}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fileEncryptionBit → const int
Bit 1 of the general purpose flag, File encryption flag
languageEncodingBitUtf8 → const int
Bit 11 of the general purpose flag, Language encoding flag
OS_MACINTOSH → const int
OS_MSDOS → const int
OS_UNIX → const int
version → const int