ArchiveFile class
A file contained in an Archive.
Constructors
- ArchiveFile(String name, int size, dynamic content, [int? _compressionType = STORE])
- ArchiveFile.noCompress(String name, int size, dynamic content)
- ArchiveFile.stream(String name, int size, InputStreamBase contentStream)
- ArchiveFile.string(String name, String content, [int? _compressionType = STORE])
Properties
- comment ↔ String?
-
getter/setter pair
- compress ↔ bool
-
If false, this file will not be compressed when encoded to an archive
format such as zip.
getter/setter pair
- compressionType → int?
-
What type of compression is the raw data stored in
no setter
- content → dynamic
-
Get the content of the file, decompressing on demand as necessary.
no setter
- crc32 ↔ int?
-
The crc32 checksum of the uncompressed content.
getter/setter pair
- groupId ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCompressed → bool
-
Is the data stored by this file currently compressed?
no setter
- isFile ↔ bool
-
If false, this is a directory.
getter/setter pair
- isSymbolicLink ↔ bool
-
If true, this is a symbolic link to the file specified in nameOfLinkedFile
getter/setter pair
- lastModDateTime → DateTime
-
no setter
- lastModTime ↔ int
-
Seconds since epoch
getter/setter pair
- mode ↔ int
-
getter/setter pair
- name ↔ String
-
getter/setter pair
- nameOfLinkedFile ↔ String
-
If this is a symbolic link, this is the path to the file its linked to.
getter/setter pair
- ownerId ↔ int
-
getter/setter pair
- rawContent → InputStreamBase?
-
Get the content without decompressing it first.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ int
-
The uncompressed size of the file
getter/setter pair
- unixPermissions → int
-
no setter
Methods
-
clear(
) → void -
close(
) → Future< void> -
closeSync(
) → void -
decompress(
[OutputStreamBase? output]) → void - If the file data is compressed, decompress it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
writeContent(
OutputStreamBase output, {bool freeMemory = true}) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited