buxing library Null safety

Classes

Conn
The default ConnBase implementation.
ConnBase
Base class for a parallel worker connection.
ConnState
Contains information about an ongoing connection in a parallel worker.
DataBody
A chunk of data transferred from server.
DataRange
Represents a range.
Dumper
Dumper writes data to a disk file.
Logger
ParallelWorker
The default parallel worker implementation.
State
Represents a download task that will be persisted to disk. A state is deleted when the task is completed.
StateHead
Core information about a task such as URL, file size etc.
Task
Represents a download operation.
TaskProgress
Represents a progress update of a task.
Worker
The default worker implementation.
WorkerBase
Base class for all workers.

Constants

connKey → const String
'conn'
dataExt → const String
File extension of a partially downloaded file.
'.bxdown'
defConnNumber → const int
5
endKey → const String
'end'
idKey → const String
'id'
originalURLKey → const String
'original_url'
parallelKey → const String
'parallel'
sizeKey → const String
'size'
startKey → const String
'start'
stateExt → const String
File extension of a task file.
'.bxdownstate'
transferredKey → const String
'transferred'
urlKey → const String
'url'

Properties

redPen AnsiPen
read / write
yellowPen AnsiPen
read / write

Functions

getDataFile(String path) File
Gets the download data file path.
getStateFile(String path) File
Gets the state file path.

Enums

LogLevel
TaskStatus
The state of a task.