Skip to content

Anabranch Core · Java 8 SDK & SPI Reference

3 public specs

Interactive reference for the zero-dependency Java 8 / Android minSdk 21 segmented downloader (io.anabranch.*), Engine/Policy/Resolver SPIs, and optional GPL-3.0 aria2 JNI backend.

CLASSAGPL-3.0-only · Pure Java 8 (--release 8)Core Stable API

Downloader, Request & Integrity Contracts

Downloader.newBuilder().build().download(req, sources, listener, cancel)

Thread-safe multi-mirror chunk scheduler supporting 6 retries/chunk, 2000ms backoff, 60s failure-only budget, .part + anabranch-meta/2 resume, and per-chunk SHA-256 verification.

Inspect Result, ProbeReport & Integrity ↗

✅ Capabilities

  • 19 plain Java 8 files with zero android.* or third-party deps (minSdk 21 compatible without desugaring)
  • Supports probeAll() mirror inspection and reports resumed vs full transferredBytes

⛔ Explicit Limits / Rejections

  • Maven Central release is manual (verify availability or compile src/); Source.maxChunks is currently metadata-only
  • Stateless library: omits default URLs, persistent settings, archive unpacking, APK installation, and UI

Parameters, Fields & Bounds

Request / Builder / Listener / CancellationargCore structsRequired

chunkRetryBudgetMs defaults to 60_000 ms; onSpeed reports bytes/sec.

Return Values & Failure Semantics

Result { totalBytes, etag, chunkVerified, transferredBytes }Non-null etag ("" fallback) and verified renamed file