-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open customize component
Jacksgong edited this page Jan 5, 2017
·
2 revisions
From now on, FileDownloader support following components to be customized by yourself:
| Name | Interface | Default Impl |
|---|---|---|
| Connection | [FileDownloadConnection][FileDownloadConnection-java-link] | [FileDownloadUrlConnection][FileDownloadUrlConnection-java-link] |
| OutputStream | [FileDownloadOutputStream][FileDownloadOutputStream-java-link] | [FileDownloadRandomAccessFile][FileDownloadRandomAccessFile-java-link] |
| Database | [FileDownloadDatabase][FileDownloadDatabase-java-link] | [DefaultDatabaseImpl][DefaultDatabaseImpl-java-link] |
If you want to use okhttp as your connection component, the simplest way is this repo.
- Initialization
- Start downloading
- Pause or Stop
- Get the internal stored data
- Customizable Component
- Interface