类 DownloadUtil
java.lang.Object
net.mcberry.stem.util.DownloadUtil
-
方法概要
修饰符和类型方法说明static StringcomputeSha1(Path file) static voiddownloadFile(String url, Path destination) static voiddownloadFileWithSha1(String url, Path destination, String expectedSha1) static StringdownloadString(String url)
-
方法详细资料
-
downloadString
-
downloadFile
public static void downloadFile(String url, Path destination) throws IOException, InterruptedException -
downloadFileWithSha1
public static void downloadFileWithSha1(String url, Path destination, String expectedSha1) throws IOException, InterruptedException -
computeSha1
- 抛出:
IOException
-