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, dynamic content_stream)
Properties
- comment ↔ String
-
read / write
- compress ↔ bool
-
If false, this file will not be compressed when encoded to an archive
format such as zip.
read / write
- compressionType → int
-
What type of compression is the raw data stored in
read-only
- content → dynamic
-
Get the content of the file, decompressing on demand as necessary.
read-only
- crc32 ↔ int
-
The crc32 checksum of the uncompressed content.
read / write
- groupId ↔ int
-
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isCompressed → bool
-
Is the data stored by this file currently compressed?
read-only
- isFile ↔ bool
-
read / write
- isSymbolicLink ↔ bool
-
read / write
- lastModTime ↔ int
-
read / write
- mode ↔ int
-
read / write
- name ↔ String
-
read / write
- nameOfLinkedFile ↔ String
-
read / write
- ownerId ↔ int
-
read / write
- rawContent → InputStream
-
Get the content without decompressing it first.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- size ↔ int
-
The uncompressed size of the file
read / write
- unixPermissions → int
-
read-only
Methods
-
decompress(
) → void - If the file data is compressed, decompress it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited