程序包 com.alazeprt
类 DependencyDownloader
java.lang.Object
com.alazeprt.DependencyDownloader
Utility class for downloading dependencies using multiple threads.
This class provides methods to download dependencies to a specified folder.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voiddownloadAll(List<Dependency> list, String outputFolder, int threads) Download all dependencies in the list to the specified folder based on the specified number of threads.
-
构造器详细资料
-
DependencyDownloader
public DependencyDownloader()
-
-
方法详细资料
-
downloadAll
public static void downloadAll(List<Dependency> list, String outputFolder, int threads) throws IOException Download all dependencies in the list to the specified folder based on the specified number of threads.- 参数:
list- All dependencies that need to be downloaded.outputFolder- Location of dependency downloads.threads- How many threads to use for downloading each dependency.- 抛出:
IOException- When unable to connect to the download link of the dependency.
-