Package org.luwrain.io.download
Class Manager
java.lang.Object
org.luwrain.io.download.Manager
- All Implemented Interfaces:
Task.Callback
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangesListener
(Runnable runnable) void
addDownload
(URL srcUrl, File destFile) void
close()
void
load()
void
void
onProgress
(Task task, long bytesFetched) void
void
removeChangesListener
(Runnable runnable) void
setFileSize
(Task task, long size)
-
Constructor Details
-
Manager
-
-
Method Details
-
load
public void load() -
close
public void close() -
addDownload
- Throws:
IOException
-
getAllEntries
-
addChangesListener
-
removeChangesListener
-
setFileSize
- Specified by:
setFileSize
in interfaceTask.Callback
-
onProgress
- Specified by:
onProgress
in interfaceTask.Callback
-
onSuccess
- Specified by:
onSuccess
in interfaceTask.Callback
-
onFailure
- Specified by:
onFailure
in interfaceTask.Callback
-