Skip navigation links
A B C D E F G H I K L M N O P R S T U W 

A

add(T) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationHelper
addFinishListener(BaseDownloadTask.FinishListener) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Add the finish listener to listen when the task is finished.
addFinishListener(BaseDownloadTask.FinishListener) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
addHeader(String, String) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Add the params to the request header.
addHeader(String) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Add a field with the specified value to the request header.
addHeader(String, String) - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
addHeader(String, String) - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
Sets the header named name to value.
addHeader(String, String) - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
addHeader(String, String) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
addHeader(String) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
addIndependentTask(DownloadTaskAdapter) - Method in class com.liulishuo.filedownloader.FileDownloadList
 
addNotificationItem(int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
addNotificationItem(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
addServiceConnectListener(FileDownloadConnectListener) - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
addTaskFinishListener(BaseDownloadTask.FinishListener) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
asInQueueTask() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Declare the task will be assembled by a queue which makes up of the same listener task.
asInQueueTask() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 

B

BaseDownloadTask - Interface in com.liulishuo.filedownloader
An atom download task.
BaseDownloadTask.FinishListener - Interface in com.liulishuo.filedownloader
 
BaseDownloadTask.InQueueTask - Interface in com.liulishuo.filedownloader
Declare the task will be assembled by a queue which makes up of the same listener task.
BaseDownloadTask.IRunningTask - Interface in com.liulishuo.filedownloader
The running task.
BaseDownloadTask.LifeCycleCallback - Interface in com.liulishuo.filedownloader
The callback for the life cycle of the task.
BaseNotificationItem - Class in com.liulishuo.filedownloader.notification
An atom notification item which identify with a downloading task, they have the same downloading Id.
BaseNotificationItem(int, String, String) - Constructor for class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
bindService() - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
bindService(Runnable) - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
blockComplete(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
blockComplete(BaseDownloadTask) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
blockComplete(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
blockComplete(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.FileDownloadSampleListener
 
blockComplete - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on blockComplete status, it means that the task has been completed downloading successfully.
blockComplete(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
build() - Method in class com.liulishuo.filedownloader.services.ForegroundServiceConfig.Builder
Deprecated.
 
Builder() - Constructor for class com.liulishuo.filedownloader.services.ForegroundServiceConfig.Builder
Deprecated.
 

C

calculateCallbackMinIntervalBytes(long) - Method in class com.liulishuo.filedownloader.progress.ProgressAssist
 
callback - Variable in class com.liulishuo.filedownloader.event.IDownloadEvent
 
callback(IDownloadEvent) - Method in class com.liulishuo.filedownloader.event.IDownloadListener
 
callback(IDownloadEvent) - Method in class com.liulishuo.filedownloader.FileDownloadConnectListener
Deprecated.
 
cancel() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Deprecated.
cancel() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
cancel() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
cancel(int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationHelper
Cancel the notification by notification id.
canRetry() - Method in class com.liulishuo.filedownloader.retry.RetryAssist
 
changeFileDownloadModelId(int, FileDownloadModel) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase.Maintainer
 
checkPermission(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
clear() - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Clear all models in this database.
clear(int, String) - Method in class com.liulishuo.filedownloader.FileDownloader
Clear the data with the provided id.
clear() - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationHelper
Clear and cancel all notifications which inside this helper FileDownloadNotificationHelper.notificationArray.
clearAllTaskData() - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
clearProgress() - Method in class com.liulishuo.filedownloader.progress.ProgressAssist
 
close() - Method in class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter
 
close() - Method in interface com.liulishuo.filedownloader.stream.FileDownloadOutputStream
Closes this output stream and releases any system resources associated with this stream.
com.liulishuo.filedownloader - package com.liulishuo.filedownloader
 
com.liulishuo.filedownloader.connection - package com.liulishuo.filedownloader.connection
 
com.liulishuo.filedownloader.database - package com.liulishuo.filedownloader.database
 
com.liulishuo.filedownloader.event - package com.liulishuo.filedownloader.event
 
com.liulishuo.filedownloader.exception - package com.liulishuo.filedownloader.exception
 
com.liulishuo.filedownloader.message - package com.liulishuo.filedownloader.message
 
com.liulishuo.filedownloader.model - package com.liulishuo.filedownloader.model
 
com.liulishuo.filedownloader.notification - package com.liulishuo.filedownloader.notification
 
com.liulishuo.filedownloader.progress - package com.liulishuo.filedownloader.progress
 
com.liulishuo.filedownloader.retry - package com.liulishuo.filedownloader.retry
 
com.liulishuo.filedownloader.services - package com.liulishuo.filedownloader.services
 
com.liulishuo.filedownloader.status - package com.liulishuo.filedownloader.status
 
com.liulishuo.filedownloader.stream - package com.liulishuo.filedownloader.stream
 
com.liulishuo.filedownloader.util - package com.liulishuo.filedownloader.util
 
commit() - Method in class com.liulishuo.filedownloader.services.DownloadMgrInitialParams.InitCustomMaker
 
CompatListenerAdaptee - Class in com.liulishuo.filedownloader
 
CompatListenerAdaptee(FileDownloadListener) - Constructor for class com.liulishuo.filedownloader.CompatListenerAdaptee
 
CompatListenerAdapter - Class in com.liulishuo.filedownloader
 
CompatListenerAdapter(CompatListenerAssist) - Constructor for class com.liulishuo.filedownloader.CompatListenerAdapter
 
CompatListenerAssist - Class in com.liulishuo.filedownloader
 
CompatListenerAssist.CompatListenerAssistCallback - Interface in com.liulishuo.filedownloader
 
completed(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
completed(BaseDownloadTask) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
completed(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
completed(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.FileDownloadSampleListener
 
completed - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on completed status, it means that the task is completed downloading successfully.
completed(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
Configuration() - Constructor for class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection.Configuration
 
connected(BaseDownloadTask, String, boolean, long, long) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
connected(BaseDownloadTask, String, boolean, long, long) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
connected() - Method in class com.liulishuo.filedownloader.FileDownloadConnectListener
Deprecated.
connected file download service
connected(BaseDownloadTask, String, boolean, long, long) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
Connected
connected(BaseDownloadTask, String, boolean, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
connected(BaseDownloadTask, String, boolean, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
connected - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on connected status, it means that the task is successfully connected to the back-end.
connectEnd(DownloadTask, int, int, Map<String, List<String>>) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
connectionCountAdapter(FileDownloadHelper.ConnectionCountAdapter) - Method in class com.liulishuo.filedownloader.services.DownloadMgrInitialParams.InitCustomMaker
 
connectionCreator(FileDownloadHelper.ConnectionCreator) - Method in class com.liulishuo.filedownloader.services.DownloadMgrInitialParams.InitCustomMaker
Customize the connection component.
ConnectionModel - Class in com.liulishuo.filedownloader.model
The connection model used for record each connections on multiple connections case.
ConnectionModel() - Constructor for class com.liulishuo.filedownloader.model.ConnectionModel
 
connectStart(DownloadTask, int, Map<String, List<String>>) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
connectStart(DownloadTask) - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
connectTimeout(int) - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection.Configuration
Sets a specified timeout value, in milliseconds, to be used when opening a communications link to the resource referenced by this URLConnection.
connectTrialEnd(DownloadTask, int, Map<String, List<String>>) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
connectTrialStart(DownloadTask, Map<String, List<String>>) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
contains(int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationHelper
 
convertDownloadStatus(StatusUtil.Status) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
convertHeaderString(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
create(FileDownloadListener) - Static method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
create(String) - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter.Factory
 
create(String) - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection.Creator
 
create(String) - Method in class com.liulishuo.filedownloader.FileDownloader
 
create(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
create(Context, File, int) - Method in class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter.Factory
 
create(Context, Uri, int) - Method in class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter.Factory
 
create(String) - Method in interface com.liulishuo.filedownloader.util.FileDownloadHelper.ConnectionCreator
The connection creator is used for creating FileDownloadConnection component which is used to use some protocol to connect to the remote server.
create(File) - Method in interface com.liulishuo.filedownloader.util.FileDownloadHelper.OutputStreamCreator
The output stream creator is used for creating FileDownloadOutputStream which is used to write the input stream to the file for downloading.
Creator() - Constructor for class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection.Creator
 
Creator(FileDownloadUrlConnection.Configuration) - Constructor for class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection.Creator
 
customMake() - Method in interface com.liulishuo.filedownloader.util.FileDownloadHelper.DatabaseCustomMaker
Deprecated.
 
customMake() - Method in interface com.liulishuo.filedownloader.util.FileDownloadHelper.OkHttpClientCustomMaker
 

D

database(FileDownloadHelper.DatabaseCustomMaker) - Method in class com.liulishuo.filedownloader.services.DownloadMgrInitialParams.InitCustomMaker
 
DEFAULT_CALLBACK_PROGRESS_MIN_INTERVAL_MILLIS - Static variable in interface com.liulishuo.filedownloader.BaseDownloadTask
 
deleteTargetFile(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
deleteTaskFiles(String, String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
deleteTempFile(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
destroyNotification(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
The notification item with the task is told to destroy.
determineConnectionCount(int, String, String, long) - Method in interface com.liulishuo.filedownloader.util.FileDownloadHelper.ConnectionCountAdapter
Deprecated.
 
disableAvoidDropFrame() - Static method in class com.liulishuo.filedownloader.FileDownloader
Disable avoiding missing screen frames, let all callbacks in FileDownloadListener can be invoked at once when it achieve.
disableCallbackProgressTimes() - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
disableNotification(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
discardFileDownloadDatabase(Context) - Method in class com.liulishuo.filedownloader.FileDownloader
Because the FileDownloader database cannot be compatible with OkDownload database, provide this method to discard the database of FileDownloader.
disconnected() - Method in class com.liulishuo.filedownloader.FileDownloadConnectListener
Deprecated.
disconnected file download service
dispatchAddResumeOffset(String, long) - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
If we find the file has been downloaded several bytes, we will try to resume from the breakpoint from offset length.
dispatchAddResumeOffset(String, long) - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
doRetry(DownloadTask) - Method in class com.liulishuo.filedownloader.retry.RetryAssist
 
DownloadConnectionAdapter - Class in com.liulishuo.filedownloader.connection
 
DownloadConnectionAdapter(FileDownloadConnection, IRedirectHandler) - Constructor for class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
DownloadConnectionAdapter.Factory - Class in com.liulishuo.filedownloader.connection
 
downloadFromBeginning(DownloadTask, BreakpointInfo, ResumeFailedCause) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
downloadFromBreakpoint(DownloadTask, BreakpointInfo) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
DownloadMgrInitialParams - Class in com.liulishuo.filedownloader.services
Params in this class is used in the downloading manager, and would be used for initialize the download manager in the process the downloader service settled on.
DownloadMgrInitialParams() - Constructor for class com.liulishuo.filedownloader.services.DownloadMgrInitialParams
 
DownloadMgrInitialParams.InitCustomMaker - Class in com.liulishuo.filedownloader.services
 
DownloadOutputStreamAdapter - Class in com.liulishuo.filedownloader.stream
 
DownloadOutputStreamAdapter(FileDownloadOutputStream) - Constructor for class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter
 
DownloadOutputStreamAdapter.Factory - Class in com.liulishuo.filedownloader.stream
 
downloadSequentially(BaseDownloadTask...) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
Form a queue with same FileDownloadQueueSet.target and will FileDownloadQueueSet.start() linearly.
downloadSequentially(List<BaseDownloadTask>) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
Form a queue with same FileDownloadQueueSet.target and will FileDownloadQueueSet.start() linearly.
DownloadTaskAdapter - Class in com.liulishuo.filedownloader
 
DownloadTaskAdapter(String) - Constructor for class com.liulishuo.filedownloader.DownloadTaskAdapter
 
downloadTogether(BaseDownloadTask...) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
Form a queue with same FileDownloadQueueSet.target and will FileDownloadQueueSet.start() in parallel.
downloadTogether(List<BaseDownloadTask>) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
Form a queue with same FileDownloadQueueSet.target and will FileDownloadQueueSet.start() in parallel.

E

enableAvoidDropFrame() - Static method in class com.liulishuo.filedownloader.FileDownloader
Avoid missing screen frames, this leads to all callbacks in FileDownloadListener do not be invoked at once when it has already achieved to ensure callbacks don't be too frequent
end(long) - Method in interface com.liulishuo.filedownloader.IDownloadSpeed.Monitor
End the monitor, and calculate the average speed during the entire downloading processing
ending() - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
To Be Reused or Close this connection, since this connection is ending in this session.
ending() - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
enqueue() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.InQueueTask
Enqueue the task to the global queue, what is the only way for the task to ready to be assembled by a queue.
enqueue(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.util.FileDownloadSerialQueue
Enqueues the given task sometime in the serial queue.
equalListener(FileDownloadListener) - Method in interface com.liulishuo.filedownloader.ITaskHunter.IStarter
 
error(BaseDownloadTask, Throwable) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
error(BaseDownloadTask, Throwable) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
error(BaseDownloadTask, Throwable) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
error(BaseDownloadTask, Throwable) - Method in class com.liulishuo.filedownloader.FileDownloadSampleListener
 
error - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on error status, it means that the task must occur some error and there isn't any valid chance to retry, so the task is finished with error.
error(BaseDownloadTask, Throwable) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
execute() - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
execute() - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
Invokes the request immediately, and blocks until the response can be processed or is in error.
execute() - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 

F

Factory(FileDownloadHelper.ConnectionCreator) - Constructor for class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter.Factory
 
Factory(FileDownloadHelper.OutputStreamCreator) - Constructor for class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter.Factory
 
fetchEnd(DownloadTask, int, long) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
fetchProgress(DownloadTask, int, long) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
fetchProgress(DownloadTask, long) - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
fetchStart(DownloadTask, int, long) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
FileDownloadConnection - Interface in com.liulishuo.filedownloader.connection
The connection used for connecting to the network.
FileDownloadConnectListener - Class in com.liulishuo.filedownloader
Deprecated.
FileDownloadConnectListener() - Constructor for class com.liulishuo.filedownloader.FileDownloadConnectListener
Deprecated.
 
FileDownloadDatabase - Interface in com.liulishuo.filedownloader.database
The filedownloader database, what is used for storing the FileDownloadModel.
FileDownloadDatabase.Maintainer - Interface in com.liulishuo.filedownloader.database
the maintainer for the database, this maintainer will be used when the database is initializing.
FileDownloader - Class in com.liulishuo.filedownloader
 
FileDownloader() - Constructor for class com.liulishuo.filedownloader.FileDownloader
 
FileDownloadGiveUpRetryException - Exception in com.liulishuo.filedownloader.exception
Throwing this exception, when we can't know the size of the download file, and its Transfer-Encoding is not Chunked either.
FileDownloadGiveUpRetryException(String) - Constructor for exception com.liulishuo.filedownloader.exception.FileDownloadGiveUpRetryException
 
FileDownloadHelper - Class in com.liulishuo.filedownloader.util
The helper for cache the appContext and OK_HTTP_CLIENT for the main process and the filedownloader process.
FileDownloadHelper() - Constructor for class com.liulishuo.filedownloader.util.FileDownloadHelper
 
FileDownloadHelper.ConnectionCountAdapter - Interface in com.liulishuo.filedownloader.util
Deprecated.
FileDownloadHelper.ConnectionCreator - Interface in com.liulishuo.filedownloader.util
 
FileDownloadHelper.DatabaseCustomMaker - Interface in com.liulishuo.filedownloader.util
Deprecated.
FileDownloadHelper.IdGenerator - Interface in com.liulishuo.filedownloader.util
Deprecated.
FileDownloadHelper.OkHttpClientCustomMaker - Interface in com.liulishuo.filedownloader.util
 
FileDownloadHelper.OutputStreamCreator - Interface in com.liulishuo.filedownloader.util
 
FileDownloadHttpException - Exception in com.liulishuo.filedownloader.exception
Throw this exception, when the HTTP status code is not HttpURLConnection.HTTP_OK and not HttpURLConnection.HTTP_PARTIAL either.
FileDownloadHttpException(int, Map<String, List<String>>, Map<String, List<String>>) - Constructor for exception com.liulishuo.filedownloader.exception.FileDownloadHttpException
 
FileDownloadLargeFileListener - Class in com.liulishuo.filedownloader
The listener for listening the downloading status changing.
FileDownloadLargeFileListener() - Constructor for class com.liulishuo.filedownloader.FileDownloadLargeFileListener
 
FileDownloadLargeFileListener(int) - Constructor for class com.liulishuo.filedownloader.FileDownloadLargeFileListener
Deprecated.
not handle priority any more
FileDownloadLine - Class in com.liulishuo.filedownloader
The FileDownload synchronous line.
FileDownloadLine() - Constructor for class com.liulishuo.filedownloader.FileDownloadLine
 
FileDownloadLineAsync - Class in com.liulishuo.filedownloader
Deprecated.
FileDownloadLineAsync() - Constructor for class com.liulishuo.filedownloader.FileDownloadLineAsync
Deprecated.
 
FileDownloadList - Class in com.liulishuo.filedownloader
Storing all tasks in processing in the Main-Process.
FileDownloadListener - Class in com.liulishuo.filedownloader
 
FileDownloadListener() - Constructor for class com.liulishuo.filedownloader.FileDownloadListener
 
FileDownloadListener(int) - Constructor for class com.liulishuo.filedownloader.FileDownloadListener
 
FileDownloadModel - Class in com.liulishuo.filedownloader.model
The model of the downloading task will be used in the filedownloader database.
FileDownloadModel() - Constructor for class com.liulishuo.filedownloader.model.FileDownloadModel
 
FileDownloadMonitor - Class in com.liulishuo.filedownloader
The FileDownloader global monitor, monitor the begin、over for all tasks.
FileDownloadMonitor() - Constructor for class com.liulishuo.filedownloader.FileDownloadMonitor
 
FileDownloadMonitor.IMonitor - Interface in com.liulishuo.filedownloader
The interface used to monitor all tasks's status change in the FileDownloader.
FileDownloadNetworkPolicyException - Exception in com.liulishuo.filedownloader.exception
Throw this exception, If you have set true to BaseDownloadTask.setWifiRequired(boolean) when starting downloading with the network type isn't wifi or in downloading state the network type change to non-Wifi type.
FileDownloadNetworkPolicyException() - Constructor for exception com.liulishuo.filedownloader.exception.FileDownloadNetworkPolicyException
 
FileDownloadNotificationHelper<T extends BaseNotificationItem> - Class in com.liulishuo.filedownloader.notification
The helper for notifications with downloading tasks.
FileDownloadNotificationHelper() - Constructor for class com.liulishuo.filedownloader.notification.FileDownloadNotificationHelper
 
FileDownloadNotificationListener - Class in com.liulishuo.filedownloader.notification
The listener of the notification with the task.
FileDownloadNotificationListener(FileDownloadNotificationHelper) - Constructor for class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
FileDownloadOutOfSpaceException - Exception in com.liulishuo.filedownloader.exception
Throw this exception, when the downloading file is too large to store, in other words, the free space is less than the length of the downloading file.
FileDownloadOutOfSpaceException(long, long, long, Throwable) - Constructor for exception com.liulishuo.filedownloader.exception.FileDownloadOutOfSpaceException
 
FileDownloadOutOfSpaceException(long, long, long) - Constructor for exception com.liulishuo.filedownloader.exception.FileDownloadOutOfSpaceException
 
FileDownloadOutputStream - Interface in com.liulishuo.filedownloader.stream
The output stream used to write the file for download.
FileDownloadQueueSet - Class in com.liulishuo.filedownloader
 
FileDownloadQueueSet(FileDownloadListener) - Constructor for class com.liulishuo.filedownloader.FileDownloadQueueSet
 
FileDownloadSampleListener - Class in com.liulishuo.filedownloader
Simplify the FileDownloadListener.
FileDownloadSampleListener() - Constructor for class com.liulishuo.filedownloader.FileDownloadSampleListener
 
FileDownloadSecurityException - Exception in com.liulishuo.filedownloader.exception
Throwing this exception, when there are some security issues found on FileDownloader.
FileDownloadSecurityException(String) - Constructor for exception com.liulishuo.filedownloader.exception.FileDownloadSecurityException
 
FileDownloadSerialQueue - Class in com.liulishuo.filedownloader.util
The serial queue, what used to dynamically increase tasks, and tasks in the queue will automatically start download one by one.
FileDownloadSerialQueue() - Constructor for class com.liulishuo.filedownloader.util.FileDownloadSerialQueue
 
FileDownloadSerialQueue(DownloadSerialQueue, UnifiedListenerManager) - Constructor for class com.liulishuo.filedownloader.util.FileDownloadSerialQueue
 
FileDownloadStatus - Class in com.liulishuo.filedownloader.model
 
FileDownloadStatus() - Constructor for class com.liulishuo.filedownloader.model.FileDownloadStatus
 
FileDownloadUrlConnection - Class in com.liulishuo.filedownloader.connection
The FileDownloadConnection implemented using URLConnection.
FileDownloadUrlConnection(String, FileDownloadUrlConnection.Configuration) - Constructor for class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
FileDownloadUrlConnection(URL, FileDownloadUrlConnection.Configuration) - Constructor for class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
FileDownloadUrlConnection(String) - Constructor for class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
FileDownloadUrlConnection.Configuration - Class in com.liulishuo.filedownloader.connection
The sample configuration for the FileDownloadUrlConnection
FileDownloadUrlConnection.Creator - Class in com.liulishuo.filedownloader.connection
 
FileDownloadUtils - Class in com.liulishuo.filedownloader.util
The utils for FileDownloader.
FileDownloadUtils() - Constructor for class com.liulishuo.filedownloader.util.FileDownloadUtils
 
find(int) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Find the model which identify is id.
findConnectionModel(int) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Find the connection model which download identify is id
findDownloadTaskAdapter(DownloadTask) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
flushAndSync() - Method in class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter
 
flushAndSync() - Method in interface com.liulishuo.filedownloader.stream.FileDownloadOutputStream
Flush all buffer to system and force all system buffers to synchronize with the underlying device.
foregroundServiceConfig(ForegroundServiceConfig) - Method in class com.liulishuo.filedownloader.services.DownloadMgrInitialParams.InitCustomMaker
 
ForegroundServiceConfig - Class in com.liulishuo.filedownloader.services
Deprecated.
ForegroundServiceConfig.Builder - Class in com.liulishuo.filedownloader.services
Deprecated.
 
formatString(String, Object...) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
free() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
Free the task.
free() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
free() - Method in interface com.liulishuo.filedownloader.ITaskHunter
Free the current hunter.

G

generateFileName(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
generateFilePath(String, String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
generateId(String, String, boolean) - Method in interface com.liulishuo.filedownloader.util.FileDownloadHelper.IdGenerator
Deprecated.
 
generateId(String, String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
generateId(String, String, boolean) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
get(int) - Method in class com.liulishuo.filedownloader.FileDownloadList
 
get(int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationHelper
Get BaseNotificationItem by the download id.
getAnotherSamePathTaskId() - Method in exception com.liulishuo.filedownloader.exception.PathConflictException
Get the identify of another task which has the same path with the current task and its target file path is the same to the current task too.
getAppContext() - Static method in class com.liulishuo.filedownloader.util.FileDownloadHelper
 
getAttachKey() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
When the task is running, it must attach a key.
getAttachKey() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getAutoRetryTimes() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getAutoRetryTimes() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getBreakpointBytes() - Method in exception com.liulishuo.filedownloader.exception.FileDownloadOutOfSpaceException
 
getCallbackProgressMinInterval() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getCallbackProgressMinInterval() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getCallbackProgressTimes() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getCallbackProgressTimes() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getCode() - Method in exception com.liulishuo.filedownloader.exception.FileDownloadHttpException
 
getCompatListener() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getDefaultSaveFilePath(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
getDefaultSaveRootPath() - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
getDesc() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
getDownloadId() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Deprecated.
getDownloadId() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getDownloadingConflictPath() - Method in exception com.liulishuo.filedownloader.exception.PathConflictException
Get the conflict downloading file path, normally, this path is used for store the downloading file relate with the PathConflictException.mTargetFilePath
getDownloadTask() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getDownloadTask() - Method in class com.liulishuo.filedownloader.status.StatusAssist
 
getErrorCause() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getErrorCause() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getErrorCause() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
getEtag() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getEtag() - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
getEtag() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getEtag() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
getEtag() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
getEx() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Deprecated.
getEx() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getException() - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
getFilename() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getFilename() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getFileName() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
getFinishListeners() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getFreeSpaceBytes() - Method in exception com.liulishuo.filedownloader.exception.FileDownloadOutOfSpaceException
 
getFreeSpaceBytes(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
getHelper() - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
getId() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
The downloading identify of this task, what is generated by BaseDownloadTask.getUrl() and BaseDownloadTask.getPath() and BaseDownloadTask.isPathAsDirectory() from
getId() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getId() - Method in class com.liulishuo.filedownloader.event.IDownloadEvent
 
getId() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
getId() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
getImpl() - Static method in class com.liulishuo.filedownloader.FileDownloader
 
getImpl() - Static method in class com.liulishuo.filedownloader.FileDownloadList
 
getInputStream() - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
getInputStream() - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
Returns an input stream that reads from this open connection.
getInputStream() - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
getLargeFileSoFarBytes() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
This method will be used when the length of target file is more than 1.99G.
getLargeFileSoFarBytes() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getLargeFileTotalBytes() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
This method will be used when the length of target file is more than 1.99G.
getLargeFileTotalBytes() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getLargeSofarBytes() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
getLargeTotalBytes() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
getLastStatus() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
getListener() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getListener() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getListenerAssist() - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
getManager() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
getMessageHandler() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
 
getMessageHandler() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getMessenger() - Method in interface com.liulishuo.filedownloader.ITaskHunter.IMessageHandler
 
getMinProgressStep() - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
getMinProgressTime() - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
getMonitor() - Static method in class com.liulishuo.filedownloader.FileDownloadMonitor
 
getOrigin() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
 
getOrigin() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getParent(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
The same to File.getParent(), for non-creating a file object.
getPath() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getPath() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getPauseLock() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
Get the object as a lock for synchronized with the pause area.
getPauseLock() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getProgressAssist() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getRedirectLocation() - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
getRequestHeader() - Method in exception com.liulishuo.filedownloader.exception.FileDownloadHttpException
 
getRequestHeaderFields() - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
Returns an unmodifiable Map of general request header fields for this connection.
getRequestHeaderFields() - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
getRequestProperties() - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
getRequestProperty(String) - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
FileDownloadConnection don't support this method.
getRequiredSpaceBytes() - Method in exception com.liulishuo.filedownloader.exception.FileDownloadOutOfSpaceException
 
getResponseCode() - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
getResponseCode() - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
Gets the status code from an HTTP response message.
getResponseCode() - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
getResponseHeader() - Method in exception com.liulishuo.filedownloader.exception.FileDownloadHttpException
 
getResponseHeaderField(String) - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
getResponseHeaderField(String) - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
Returns the value of the named header field, which would be the response-header field.
getResponseHeaderField(String) - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
getResponseHeaderFields() - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
getResponseHeaderFields() - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
Returns an unmodifiable Map of the header fields.
getResponseHeaderFields() - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
getRetriedTimes() - Method in class com.liulishuo.filedownloader.retry.RetryAssist
 
getRetryAssist() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getRetryingTimes() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getRetryingTimes() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getRetryingTimes() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
getRetryingTimes() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
getSmallFileSoFarBytes() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
This method will be used when the length of target file is less than or equal to 1.99G.
getSmallFileSoFarBytes() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getSmallFileTotalBytes() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
This method will be used when the length of target file is less than or equal to 1.99G.
getSmallFileTotalBytes() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getSmallSofarBytes() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
getSmallTotalBytes() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
getSoFar(int) - Method in class com.liulishuo.filedownloader.FileDownloader
Get downloaded bytes so far by the downloadId.
getSoFar(int) - Method in class com.liulishuo.filedownloader.FileDownloadLine
getSofar() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
getSoFarBytes() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
getSoFarBytes() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getSofarBytes() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
getSofarBytes() - Method in class com.liulishuo.filedownloader.progress.ProgressAssist
 
getSoFarBytesInLong() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getSpeed() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Get the downloading speed.
getSpeed() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getSpeed() - Method in interface com.liulishuo.filedownloader.IDownloadSpeed.Lookup
 
getSpeed() - Method in class com.liulishuo.filedownloader.progress.ProgressAssist
 
getStack() - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
getStack(boolean) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
getStack(StackTraceElement[], boolean) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
getStatus() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getStatus() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getStatus(String, String) - Method in class com.liulishuo.filedownloader.FileDownloader
 
getStatus(int, String) - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
getStatus(int, String) - Method in class com.liulishuo.filedownloader.FileDownloadLine
getStatus() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
getStatus() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot.StartedMessageSnapshot
 
getStatus() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
getStatus() - Method in class com.liulishuo.filedownloader.status.StatusAssist
 
getStatusIgnoreCompleted(int) - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
getTag() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getTag(int) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Returns the tag associated with this task and the specified key.
getTag() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getTag(int) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getTargetFilePath() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getTargetFilePath() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getTargetFilePath() - Method in exception com.liulishuo.filedownloader.exception.PathConflictException
Get the target file path, which downloading file path is conflict when downloading the task.
getTargetFilePath(String, boolean, String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
getTempPath(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
getThreadPoolName(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
getThrowable() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
getTitle() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
getTotal(int) - Method in class com.liulishuo.filedownloader.FileDownloader
Get the total bytes of the target file for the task with the {code id}.
getTotal(int) - Method in class com.liulishuo.filedownloader.FileDownloadLine
getTotal() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
getTotalBytes() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
getTotalBytes() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getTotalBytes() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
getTotalBytesInLong() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getUrl() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
getUrl() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
getWaitingTaskCount() - Method in class com.liulishuo.filedownloader.util.FileDownloadSerialQueue
Get the count of tasks which is waiting on this queue.
getWorkingTaskId() - Method in class com.liulishuo.filedownloader.util.FileDownloadSerialQueue
Returns the identify of the working task, if there is task is working, you will receive DownloadSerialQueue.ID_INVALID.

H

holdContext(Context) - Static method in class com.liulishuo.filedownloader.util.FileDownloadHelper
 

I

id - Variable in class com.liulishuo.filedownloader.event.IDownloadEvent
 
idGenerator(FileDownloadHelper.IdGenerator) - Method in class com.liulishuo.filedownloader.services.DownloadMgrInitialParams.InitCustomMaker
 
IDownloadEvent - Class in com.liulishuo.filedownloader.event
An atom event.
IDownloadEvent(String) - Constructor for class com.liulishuo.filedownloader.event.IDownloadEvent
 
IDownloadEvent(String, boolean) - Constructor for class com.liulishuo.filedownloader.event.IDownloadEvent
Deprecated.
do not handle ORDER any more.
IDownloadListener - Class in com.liulishuo.filedownloader.event
The listener is used to listen the publish event from Event Pool.
IDownloadListener() - Constructor for class com.liulishuo.filedownloader.event.IDownloadListener
 
IDownloadSpeed - Interface in com.liulishuo.filedownloader
The interface for the downloading speed.
IDownloadSpeed.Lookup - Interface in com.liulishuo.filedownloader
For lookup the downloading speed data.
IDownloadSpeed.Monitor - Interface in com.liulishuo.filedownloader
The downloading monitor, used for calculating downloading speed.
ignoreEachTaskInternalProgress() - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
init(Context) - Static method in class com.liulishuo.filedownloader.FileDownloader
 
init(Context, FileDownloadHelper.OkHttpClientCustomMaker) - Static method in class com.liulishuo.filedownloader.FileDownloader
 
init(Context, FileDownloadHelper.OkHttpClientCustomMaker, int) - Static method in class com.liulishuo.filedownloader.FileDownloader
Initial a OkDownload instance.
InitCustomMaker(Context) - Constructor for class com.liulishuo.filedownloader.services.DownloadMgrInitialParams.InitCustomMaker
 
initSofarBytes(long) - Method in class com.liulishuo.filedownloader.progress.ProgressAssist
 
insert(FileDownloadModel) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Insert the model to the database.
insertConnectionModel(ConnectionModel) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Insert the model to connection table.
insureAssembleDownloadTask() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
insureServiceBind() - Method in class com.liulishuo.filedownloader.FileDownloader
Because there is no any service, the FileDownloadLine will not do any wait action.
insureServiceBindAsync() - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
interceptCancel(BaseDownloadTask, BaseNotificationItem) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
intoLaunchPool() - Method in interface com.liulishuo.filedownloader.ITaskHunter
Enter into the launch pool.
INVALID_STATUS - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on INVALID_STATUS status, it means that the task is IDLE.
is(int) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
 
is(FileDownloadListener) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
 
is(int) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
is(FileDownloadListener) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isAttached() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Whether this task has already attached to a listener / a serial-queue.
isAttached() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isChanged() - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
isContainFinishListener() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
Whether contain finish listener or not.
isContainFinishListener() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isContinue() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Deprecated.
isContinue() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isDownloaderProcess(Context) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
isEnabledAvoidDropFrame() - Static method in class com.liulishuo.filedownloader.FileDownloader
 
isFilenameValid(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
isForceReDownload() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
isForceReDownload() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isIng(int) - Static method in class com.liulishuo.filedownloader.model.FileDownloadStatus
 
isInvalid() - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
isLargeFile() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
isLargeFile() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isLargeFile() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
isLargeFile() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
isMarkedAdded2List() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
 
isMarkedAdded2List() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isNetworkNotOnWifiType() - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
isOver() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
 
isOver() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isOver(int) - Static method in class com.liulishuo.filedownloader.model.FileDownloadStatus
 
isOver() - Method in class com.liulishuo.filedownloader.status.StatusAssist
 
isPathAsDirectory() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
isPathAsDirectory() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isResumable() - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
isResuming() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
isResuming() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isResuming() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
isResuming() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
isReusedDownloadedFile() - Method in class com.liulishuo.filedownloader.message.MessageSnapshot
 
isReusedOldFile() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
isReusedOldFile() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isReusedOldFile() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
isReuseOldFile() - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
isRunning() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
isRunning() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isServiceConnected() - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
isSyncCallback() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
isSyncCallback() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isUsing() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
isUsing() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
isUsing() - Method in class com.liulishuo.filedownloader.status.StatusAssist
 
isValid() - Static method in class com.liulishuo.filedownloader.FileDownloadMonitor
 
isWifiRequired() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
isWifiRequired() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
ITaskHunter - Interface in com.liulishuo.filedownloader
The downloading task hunter.
ITaskHunter.IMessageHandler - Interface in com.liulishuo.filedownloader
The message handler for a task.
ITaskHunter.IStarter - Interface in com.liulishuo.filedownloader
The starter for the downloading task.

K

KEY_TASK_ADAPTER - Static variable in class com.liulishuo.filedownloader.DownloadTaskAdapter
 

L

largeFile - Variable in class com.liulishuo.filedownloader.message.MessageSnapshot
 

M

maintainer() - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Get the maintainer for the database, this maintainer will be used when the database is initializing.
markAdded2List() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
Mark the task has already added to the downloading list.
markAdded2List() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
maxNetworkThreadCount(int) - Method in class com.liulishuo.filedownloader.services.DownloadMgrInitialParams.InitCustomMaker
The max thread count in OkDownload thread pool is Integer.MAX, this configuration is useless.
mConnection - Variable in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
md5(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
 
MessageSnapshot - Class in com.liulishuo.filedownloader.message
The message snapshot.
MessageSnapshot.IWarnMessageSnapshot - Interface in com.liulishuo.filedownloader.message
 
MessageSnapshot.NoFieldException - Exception in com.liulishuo.filedownloader.message
 
MessageSnapshot.StartedMessageSnapshot - Class in com.liulishuo.filedownloader.message
 

N

needRecreateChannelId(boolean) - Method in class com.liulishuo.filedownloader.services.ForegroundServiceConfig.Builder
Deprecated.
 
NO_RESPONSE_CODE - Static variable in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
 
notification(Notification) - Method in class com.liulishuo.filedownloader.services.ForegroundServiceConfig.Builder
Deprecated.
 
notificationChannelId(String) - Method in class com.liulishuo.filedownloader.services.ForegroundServiceConfig.Builder
Deprecated.
 
notificationChannelName(String) - Method in class com.liulishuo.filedownloader.services.ForegroundServiceConfig.Builder
Deprecated.
 
notificationId(int) - Method in class com.liulishuo.filedownloader.services.ForegroundServiceConfig.Builder
Deprecated.
 

O

okDownloadBuilder(Context, FileDownloadHelper.OkHttpClientCustomMaker) - Static method in class com.liulishuo.filedownloader.FileDownloader
 
onBegin() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.LifeCycleCallback
The task begin working.
onFinishMaintain() - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase.Maintainer
invoke this method when the operation for maintain is finished.
onIng() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.LifeCycleCallback
The task is running, and during the downloading processing, when the status of the task is changed will trigger to callback this method.
onOver() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.LifeCycleCallback
The task is end.
onProgress(DownloadTaskAdapter, long, CompatListenerAssist.CompatListenerAssistCallback) - Method in class com.liulishuo.filedownloader.progress.ProgressAssist
 
onRefreshedValidData(FileDownloadModel) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase.Maintainer
invoke this method when the model is valid to save and has been refreshed.
onRemovedInvalidData(FileDownloadModel) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase.Maintainer
invoke this method when the model is invalid and has been removed.
onRequestStart(int, boolean, FileDownloadListener) - Method in interface com.liulishuo.filedownloader.FileDownloadMonitor.IMonitor
Request to start multi-tasks manually.
onRequestStart(BaseDownloadTask) - Method in interface com.liulishuo.filedownloader.FileDownloadMonitor.IMonitor
Request to start a task.
onTaskBegin(BaseDownloadTask) - Method in interface com.liulishuo.filedownloader.FileDownloadMonitor.IMonitor
The method will be invoked when the task in the internal is beginning.
onTaskOver(BaseDownloadTask) - Method in interface com.liulishuo.filedownloader.FileDownloadMonitor.IMonitor
The method will be invoked when the task in the internal is over.
onTaskStart(int) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Invoked when task is started.
onTaskStarted(BaseDownloadTask) - Method in interface com.liulishuo.filedownloader.FileDownloadMonitor.IMonitor
The method will be invoked when the download runnable of the task has started running.
outputStreamCreator(FileDownloadHelper.OutputStreamCreator) - Method in class com.liulishuo.filedownloader.services.DownloadMgrInitialParams.InitCustomMaker
Customize the output stream component.
over(BaseDownloadTask) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.FinishListener
Will be invoked when the task is over(FileDownloadStatus.isOver(int)).

P

parseContentDisposition(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
The same to com.android.providers.downloads.Helpers#parseContentDisposition.
parseContentRangeFoInstanceLength(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
PathConflictException - Exception in com.liulishuo.filedownloader.exception
Throw this exception, when there is an another running task with the same path with the current task, so if the current task is started, the path of the file is sure to be written by multiple tasks, it is wrong, then we through this exception to avoid such conflict.
PathConflictException(int, String, String) - Constructor for exception com.liulishuo.filedownloader.exception.PathConflictException
 
pause() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Why pause? not stop/cancel? because invoke this method(pause) will clear all data about this task in memory, and stop the total processing about this task.
pause() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
pause(FileDownloadListener) - Method in class com.liulishuo.filedownloader.FileDownloader
 
pause(int) - Method in class com.liulishuo.filedownloader.FileDownloader
 
pause() - Method in interface com.liulishuo.filedownloader.ITaskHunter
 
pause() - Method in class com.liulishuo.filedownloader.util.FileDownloadSerialQueue
Pause the queue.
pauseAll() - Method in class com.liulishuo.filedownloader.FileDownloader
 
paused(BaseDownloadTask, long, long) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
paused(BaseDownloadTask, long, long) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
paused(BaseDownloadTask, long, long) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
Download paused
paused(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
paused(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
paused(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadSampleListener
 
paused - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on paused status, it means that the task is paused manually.
paused(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
pending(BaseDownloadTask, long, long) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
pending(BaseDownloadTask, long, long) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
pending(BaseDownloadTask, long, long) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
Entry queue, and pending
pending(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
pending(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
pending(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadSampleListener
 
pending - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on pending status, it means that the task is in the list on the FileDownloadService and just waiting for start.
pending(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
prepareErrorMessage(Throwable) - Method in interface com.liulishuo.filedownloader.ITaskHunter.IMessageHandler
 
progress(BaseDownloadTask, long, long) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
progress(BaseDownloadTask, long, long) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
progress(BaseDownloadTask, long, long) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
 
progress(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
progress(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
progress(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadSampleListener
 
progress - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on progress status, it means that the task is fetching data from the back-end.
progress(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
ProgressAssist - Class in com.liulishuo.filedownloader.progress
 
ProgressAssist(int) - Constructor for class com.liulishuo.filedownloader.progress.ProgressAssist
 
ProgressAssist(int, SpeedCalculator) - Constructor for class com.liulishuo.filedownloader.progress.ProgressAssist
 
proxy(Proxy) - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection.Configuration
The connection will be made through the specified proxy.

R

readTimeout(int) - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection.Configuration
Sets the read timeout to a specified timeout, in milliseconds.
ready() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Deprecated.
please use BaseDownloadTask.asInQueueTask() first and when you need to enqueue this task to the global queue to make this task is ready to be assembled by the queue which makes up of the same listener task, just invoke BaseDownloadTask.InQueueTask.enqueue().
ready() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
Deprecated.
release() - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
releaseGlobalMonitor() - Static method in class com.liulishuo.filedownloader.FileDownloadMonitor
 
remove(int) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Remove the model which identify is id.
remove(BaseDownloadTask.IRunningTask, MessageSnapshot) - Method in class com.liulishuo.filedownloader.FileDownloadList
Deprecated.
remove(DownloadTaskAdapter) - Method in class com.liulishuo.filedownloader.FileDownloadList
 
remove(int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationHelper
Remove the BaseNotificationItem by the download id.
removeAllHeaders(String) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Remove all fields in the request header.
removeAllHeaders(String) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
removeConnections(int) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Delete all connection model store on database through the download id.
removeFinishListener(BaseDownloadTask.FinishListener) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Remove the finish listener from this task.
removeFinishListener(BaseDownloadTask.FinishListener) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
removeServiceConnectListener(FileDownloadConnectListener) - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
replaceListener(FileDownloadListener) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
replaceListener(String, FileDownloadListener) - Method in class com.liulishuo.filedownloader.FileDownloader
Find the running task by url and default path, and replace its listener with the new one listener.
replaceListener(String, String, FileDownloadListener) - Method in class com.liulishuo.filedownloader.FileDownloader
Find the running task by url and path, and replace its listener with the new one listener.
replaceListener(int, FileDownloadListener) - Method in class com.liulishuo.filedownloader.FileDownloader
Find the running task by id, and replace its listener width the new one listener.
reset() - Method in interface com.liulishuo.filedownloader.IDownloadSpeed.Monitor
Reset the monitor.
reset() - Method in interface com.liulishuo.filedownloader.ITaskHunter
Reset the hunter.
RESPONSE_CODE_FROM_OFFSET - Static variable in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
 
resume() - Method in class com.liulishuo.filedownloader.util.FileDownloadSerialQueue
Resume the queue if the queue is paused.
retry(BaseDownloadTask, Throwable, int, long) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
retry(BaseDownloadTask, Throwable, int, long) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
retry(BaseDownloadTask, Throwable, int, long) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
Start Retry
retry(BaseDownloadTask, Throwable, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadLargeFileListener
retry(BaseDownloadTask, Throwable, int, int) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
retry - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on retry status, it means that the task must occur some error, but there is a valid chance to retry, so the task is retry to download again.
retry(BaseDownloadTask, Throwable, int, int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
RetryAssist - Class in com.liulishuo.filedownloader.retry
 
RetryAssist(int) - Constructor for class com.liulishuo.filedownloader.retry.RetryAssist
 
reuse() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Reuse this task withhold request params: path、url、header、isForceReDownloader、etc.
reuse() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
reuseAndStart() - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
Before starting downloading tasks in this queue-set, we will try to BaseDownloadTask.reuse() tasks first.

S

seek(long) - Method in class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter
 
seek(long) - Method in interface com.liulishuo.filedownloader.stream.FileDownloadOutputStream
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs.
setAttachKeyByQueue(int) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
Set this task attach to the key by the queue.
setAttachKeyByQueue(int) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setAttachKeyDefault() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
Set this task to the default key.
setAttachKeyDefault() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setAutoRetryTimes(int) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Set the number of times to retry when encounter any error, except FileDownloadGiveUpRetryException.
setAutoRetryTimes(int) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setAutoRetryTimes(int) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
setCallbackProgressIgnored() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Ignore all callbacks of FileDownloadListener.progress(BaseDownloadTask, int, int) during the entire process of downloading.
setCallbackProgressIgnored() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setCallbackProgressMinInterval(int) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Set the minimum time interval between each callback of FileDownloadListener.progress(BaseDownloadTask, int, int).
setCallbackProgressMinInterval(int) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setCallbackProgressMinInterval(int) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
setCallbackProgressTimes(int) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Set the maximum callback count of FileDownloadListener.progress(BaseDownloadTask, int, int) during the entire process of downloading.
setCallbackProgressTimes(int) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setCallbackProgressTimes(int) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
setDefaultSaveRootPath(String) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
The path is used as the default directory in the case of the task without set path.
setDesc(String) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
setDirectory(String) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
setDownloadTask(DownloadTask) - Method in class com.liulishuo.filedownloader.status.StatusAssist
 
setEtag(String) - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
setFinishListener(BaseDownloadTask.FinishListener) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
setFinishListener(BaseDownloadTask.FinishListener) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setForceReDownload(boolean) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Force re-downloading the file regardless the target file is exist.
setForceReDownload(boolean) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setForceReDownload(boolean) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
setGlobalHandleSubPackageSize(int) - Static method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
setGlobalMonitor(FileDownloadMonitor.IMonitor) - Static method in class com.liulishuo.filedownloader.FileDownloadMonitor
 
setGlobalPost2UIInterval(int) - Static method in class com.liulishuo.filedownloader.FileDownloader
For avoiding missing screen frames.
setId(int) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
setLength(long) - Method in class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter
 
setLength(long) - Method in interface com.liulishuo.filedownloader.stream.FileDownloadOutputStream
Sets the length of this file.
setListener(FileDownloadListener) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
setListener(FileDownloadListener) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setMaxNetworkThreadCount(int) - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
setMinIntervalUpdateSpeed(int) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
setMinIntervalUpdateSpeed(int) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setMinIntervalUpdateSpeed(int) - Method in interface com.liulishuo.filedownloader.IDownloadSpeed.Lookup
 
setMinProgressStep(int) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
setMinProgressTime(long) - Static method in class com.liulishuo.filedownloader.util.FileDownloadUtils
Deprecated.
setPath(String) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
setPath(String, boolean) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
setPath(String) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setPath(String, boolean) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setRequestMethod(String) - Method in class com.liulishuo.filedownloader.connection.DownloadConnectionAdapter
 
setRequestMethod(String) - Method in interface com.liulishuo.filedownloader.connection.FileDownloadConnection
Set the method for the request, one of: GET POST HEAD OPTIONS PUT DELETE TRACE are legal, subject to protocol restrictions.
setRequestMethod(String) - Method in class com.liulishuo.filedownloader.connection.FileDownloadUrlConnection
 
setResumable(boolean) - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
setSingleton(FileDownloadList) - Static method in class com.liulishuo.filedownloader.FileDownloadList
 
setSofar(int) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
setStatus(int) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
setSyncCallback(boolean) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
 
setSyncCallback(boolean) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setSyncCallback(boolean) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
setTag(Object) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Sets the tag associated with this task, not be used by internal.
setTag(int, Object) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Set a tag associated with this task, not be used by internal.
setTag(Object) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setTag(int, Object) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setTag(Object) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
setTitle(String) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
setTotal(int) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
setup(Context) - Static method in class com.liulishuo.filedownloader.FileDownloader
You can invoke this method anytime before you using the FileDownloader.
setupOnApplicationOnCreate(Application) - Static method in class com.liulishuo.filedownloader.FileDownloader
Using this method to setup the FileDownloader only you want to register your own customize components for Filedownloader, otherwise just using FileDownloader.setup(Context) instead.
setWifiRequired(boolean) - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Set whether this task only allows downloading on the wifi network type.
setWifiRequired(boolean) - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
setWifiRequired(boolean) - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
 
show(boolean) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
show(boolean, int, boolean) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
showIndeterminate(int, int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationHelper
Show the notification with indeterminate progress.
showIndeterminate(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
showProgress(int, int, int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationHelper
Show the notification with the exact progress.
showProgress(BaseDownloadTask, int, int) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
shutdown() - Method in class com.liulishuo.filedownloader.util.FileDownloadSerialQueue
Attempts to stop the working task, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.
start() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask
Start this task in parallel.
start() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
start(FileDownloadListener, boolean) - Method in class com.liulishuo.filedownloader.FileDownloader
Start the download queue by the same listener.
start() - Method in class com.liulishuo.filedownloader.FileDownloadQueueSet
Start tasks in a queue.
start(long) - Method in interface com.liulishuo.filedownloader.IDownloadSpeed.Monitor
Start the monitor.
start() - Method in interface com.liulishuo.filedownloader.ITaskHunter.IStarter
Start the task in the launcher thread.
started(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
started(BaseDownloadTask) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
started(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
started - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on started status, it means that the network access thread of downloading this task is started.
started(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
startForeground(int, Notification) - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
startForeground(int, Notification) - Method in class com.liulishuo.filedownloader.FileDownloadLine
Deprecated.
startForeground(int, Notification) - Method in class com.liulishuo.filedownloader.FileDownloadLineAsync
Deprecated.
startTaskByQueue() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
Start the task by the queue handler.
startTaskByQueue() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
startTaskByRescue() - Method in interface com.liulishuo.filedownloader.BaseDownloadTask.IRunningTask
Start the task just because this task can't started by pass, and now, we try to rescue this task and start it.
startTaskByRescue() - Method in class com.liulishuo.filedownloader.DownloadTaskAdapter
 
StatusAssist - Class in com.liulishuo.filedownloader.status
 
StatusAssist() - Constructor for class com.liulishuo.filedownloader.status.StatusAssist
 
stopForeground(boolean) - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
supportSeek() - Method in class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter.Factory
 
supportSeek() - Method in interface com.liulishuo.filedownloader.util.FileDownloadHelper.OutputStreamCreator
 

T

taskEnd(DownloadTask, EndCause, Exception) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
taskEnd(DownloadTask, EndCause, Exception) - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
taskStart(DownloadTask) - Method in class com.liulishuo.filedownloader.CompatListenerAdapter
 
taskStart(DownloadTask) - Method in class com.liulishuo.filedownloader.CompatListenerAssist
 
toFileDownloadService - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on toFileDownloadService status, it means that the task is just post to the FileDownloadService.
toLaunchPool - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on toLaunchPool status, it means that the task is just into the LaunchPool and is scheduled for launch.
transOldId(int, String, String, boolean) - Method in interface com.liulishuo.filedownloader.util.FileDownloadHelper.IdGenerator
Deprecated.
 
turnToPending() - Method in interface com.liulishuo.filedownloader.message.MessageSnapshot.IWarnMessageSnapshot
 

U

unbindService() - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
unBindServiceIfIdle() - Method in class com.liulishuo.filedownloader.FileDownloader
Deprecated.
update(FileDownloadModel) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the data compare to the downloadModel
update(long) - Method in interface com.liulishuo.filedownloader.IDownloadSpeed.Monitor
Refresh the downloading speed.
update(int, int) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 
updateCompleted(int, long) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the data because of the download status alternative to FileDownloadStatus.completed.
updateConnected(int, long, String, String) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the data because of the download status alternative to FileDownloadStatus.connected.
updateConnectionCount(int, int) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the count of connection.
updateConnectionModel(int, int, long) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the currentOffset with currentOffset which id is id, index is index
updateError(int, Throwable, long) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the data because of the download status alternative to FileDownloadStatus.error.
updateKeepAhead(MessageSnapshot) - Method in interface com.liulishuo.filedownloader.ITaskHunter.IMessageHandler
Try to dispatch the snapshot with the keep ahead policy.
updateKeepFlow(MessageSnapshot) - Method in interface com.liulishuo.filedownloader.ITaskHunter.IMessageHandler
Try to dispatch the snapshot with the keep right flow policy.
updateMoreLikelyCompleted(MessageSnapshot) - Method in interface com.liulishuo.filedownloader.ITaskHunter.IMessageHandler
Try to dispatch the snapshot with the more likely completed policy.
updateOldEtagOverdue(int, String, long, long, int) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update when the old one is overdue.
updatePause(int, long) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the data because of the download status alternative to FileDownloadStatus.paused.
updatePending(int) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the data because of the download status alternative to FileDownloadStatus.pending.
updateProgress(int, long) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the sofar bytes with the status progress, so don't forget to store the FileDownloadStatus.progress too.
updateRetry(int, Throwable) - Method in interface com.liulishuo.filedownloader.database.FileDownloadDatabase
Update the data because of the download status alternative to FileDownloadStatus.retry.
updateSameFilePathTaskRunning(MessageSnapshot) - Method in interface com.liulishuo.filedownloader.ITaskHunter.IMessageHandler
Try to dispatch the snapshot with the same file path policy.
updateStatus(int) - Method in class com.liulishuo.filedownloader.notification.BaseNotificationItem
 

W

warn(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.CompatListenerAdaptee
 
warn(BaseDownloadTask) - Method in interface com.liulishuo.filedownloader.CompatListenerAssist.CompatListenerAssistCallback
warn(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.FileDownloadListener
 
warn(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.FileDownloadSampleListener
 
warn - Static variable in class com.liulishuo.filedownloader.model.FileDownloadStatus
When the task on warn status, it means that there is another same task(same url, same path to store content) is running.
warn(BaseDownloadTask) - Method in class com.liulishuo.filedownloader.notification.FileDownloadNotificationListener
 
write(byte[], int, int) - Method in class com.liulishuo.filedownloader.stream.DownloadOutputStreamAdapter
 
write(byte[], int, int) - Method in interface com.liulishuo.filedownloader.stream.FileDownloadOutputStream
Writes len bytes from the specified byte array starting at offset off to this file.
A B C D E F G H I K L M N O P R S T U W 
Skip navigation links