public final class HttpDownloader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
INTERVAL |
java.lang.Thread |
thread |
java.util.concurrent.atomic.AtomicInteger |
writed |
| Constructor and Description |
|---|
HttpDownloader(java.net.URL url,
java.nio.file.Path file) |
| Modifier and Type | Method and Description |
|---|---|
static void |
downloadFile(java.net.URL url,
java.nio.file.Path file,
java.util.function.Consumer<java.lang.Integer> chanheTrack) |
static void |
downloadZip(java.net.URL url,
java.nio.file.Path dir) |
java.lang.String |
getFilename() |
public static final int INTERVAL
public final java.util.concurrent.atomic.AtomicInteger writed
public final java.lang.Thread thread
public java.lang.String getFilename()
public static void downloadFile(java.net.URL url,
java.nio.file.Path file,
java.util.function.Consumer<java.lang.Integer> chanheTrack)
throws java.io.IOException
java.io.IOExceptionpublic static void downloadZip(java.net.URL url,
java.nio.file.Path dir)
throws java.io.IOException
java.io.IOException