Package net.javasauce.ss.tasks
Class DownloadTask
java.lang.Object
net.javasauce.ss.util.task.Task
net.javasauce.ss.tasks.DownloadTask
Created by covers1624 on 6/24/25.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddMutator(net.covers1624.quack.util.SneakyUtils.ThrowingConsumer<Path, IOException> mutFunc) static DownloadTaskcreate(String name, Executor executor, net.covers1624.quack.net.httpapi.HttpEngine http, Consumer<DownloadTask> configure) protected voidexecute()Called to execute your task actions.Methods inherited from class net.javasauce.ss.util.task.Task
computedOutput, declareCompositeTask, dependsOn, dependsOn, getFuture, getName, input, input, inputCollection, optionalInput, output, runTasks, runTasks, withCaching, withCaching
-
Field Details
-
output
-
url
-
localOverride
-
downloadHash
-
downloadLen
-
-
Method Details
-
create
public static DownloadTask create(String name, Executor executor, net.covers1624.quack.net.httpapi.HttpEngine http, Consumer<DownloadTask> configure) -
addMutator
public DownloadTask addMutator(net.covers1624.quack.util.SneakyUtils.ThrowingConsumer<Path, IOException> mutFunc) -
execute
Description copied from class:TaskCalled to execute your task actions.- Specified by:
executein classTask- Throws:
IOException
-