FileContent class abstract

Used by ArchiveFile to abstract the content of a file within an archive file, either in memory, or a position within a file on disk.

Implementers

Constructors

FileContent.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
isCompressed bool
True if the file content is compressed.
no setter
length int
The size of the file content in bytes.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Close the file content asynchronously.
closeSync() → void
Close the file content synchronously.
decompress(OutputStream output) → void
Decompress the file content and write out the decompressed bytes to the output stream.
getStream({bool decompress = true}) InputStream
Get the InputStream for reading the file content.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBytes() Uint8List
Read the file content into memory and return the read bytes.
toString() String
A string representation of this object.
inherited
write(OutputStream output) → void
Write the contents of the file to the given output.

Operators

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