B4J Library PD_ResumableDownloader

b4j lib : PD_ResumableDownloader - v1.0

Features :
- Resumable Download
- Auto-Resume After Interruption
- Pause, Resume & Cancel
- Already-Downloaded Detection
- HTTP 416 (Range Not Satisfiable) Handling
- Redirect Support (301, 302, 307, 308)
- Automatic Retry
- Delete on Cancel
- Auto Filename Extraction (URL / Content-Disposition)
- Smart Duplicate Filename Handling
- Correct Resume for Folder Downloads
- Real-Time Progress Tracking (Downloaded, Total, Remaining, Percent, Speed, ETA)
- Accurate Percentage Calculation (Up to 100%)
- Download Speed Limit (Bytes/sec or KB/MB/GB)
- Free Disk Space Check
- Minimum Free Space Control
- Custom HTTP Headers
- Configurable Connect/Read Timeouts & Buffer Size
- Adjustable Progress Update Interval
- State Tracking (Started, Paused, Canceled, Error, InsufficientSpace, Completed)
- Formatting Helpers (FormatBytes, FormatSpeed, FormatETA)
- Runtime Status Properties (IsRunning, IsPaused, IsCompleted, Speed, EtaSeconds, etc.)

events :
Private Sub EventName_Progress(downloaded As Long, total As Long, remaining As Long, percent As Int, speed As Long, etaSeconds As Long)
Private Sub EventName_StateChanged(state As Int, data As DownloadEventData)
├── STATE_STARTED
├── STATE_PAUSED
├── STATE_CANCELED
├── STATE_ERROR
├── STATE_INSUFFICIENT_SPACE
└── STATE_COMPLETED
 

Attachments

  • lib 1.0.zip
    12.2 KB · Views: 16
  • example.zip
    4 KB · Views: 15
Top