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

add(ArchiveFile entry, {bool autoClose = true, ArchiveCallback? callback, int? level}) → void
encode(Archive archive, {int level = DeflateLevel.bestSpeed, OutputStream? output, DateTime? modified, bool autoClose = false, ArchiveCallback? callback}) List<int>
Alias for encodeBytes, kept for backwards compatibility.
encodeBytes(Archive archive, {int level = DeflateLevel.bestSpeed, OutputStream? output, DateTime? modified, bool autoClose = false, ArchiveCallback? callback}) Uint8List
encodeStream(Archive archive, OutputStream output, {int level = DeflateLevel.bestSpeed, DateTime? modified, bool autoClose = false, ArchiveCallback? callback}) → void
endEncode({String? comment = ''}) → void
getFileCrc32(ArchiveFile file) int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startEncode(OutputStream? output, {int? level = DeflateLevel.bestSpeed, 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
version → const int