Skip to content

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 FileDownloadUrlConnection
OutputStream FileDownloadOutputStream FileDownloadRandomAccessFile
Database FileDownloadDatabase DefaultDatabaseImpl

If you want to use okhttp as your connection component, the simplest way is this repo.

Clone this wiki locally