Dumper class
Dumper writes data to a disk file.
Properties
- currentState → State
-
Last written state.
no setter
- dataFile → File
-
File object of the destination file.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger ↔ Logger?
-
getter/setter pair
- path → String
-
Path of the destination file.
final
- position → int
-
Returns the current file position.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stateFile → File
-
File object of the task file.
final
Methods
-
close(
) → Future< void> - Releases any resources of the current dumper.
-
complete(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
seek(
int poz) → Future< void> - Sets the internal file position.
-
toString(
) → String -
A string representation of this object.
inherited
-
truncate(
int length) → Future< void> - Truncates the internal file to the given length.
-
writeData(
List< int> data) → Future<void> - Writes the specified data to disk.
-
writeState(
State state) → Future< void> - Saves the state to disk.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
String dest, StateHead head, [Logger? logger]) → Future< Dumper> - Creates a dumper and overwrites the existing one.
-
load(
String dest, StateHead head, [Logger? logger]) → Future< Dumper?> - Loads a dumper from the given path.
-
loadOrCreate(
String dest, StateHead head, [Logger? logger]) → Future< Dumper> - Loads a dumper at the given path or creates one if it doesn't exist.