public abstract class UrlStreams extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
UrlStreams.DownloadCopyListener |
| Constructor and Description |
|---|
UrlStreams() |
| Modifier and Type | Method and Description |
|---|---|
static UrlStreams.DownloadCopyListener |
downloadCopyListenerDelegatingTo(ProgressListener progressListener) |
protected static Path |
downloadIntoTempFile(URLConnection connection,
UrlStreams.DownloadCopyListener copyListener) |
protected static <E extends Exception> |
downloadTo(URLConnection connection,
Path destination,
de.flapdoodle.types.ThrowingFunction<URLConnection,Path,E> urlToTempFile) |
static <E extends Exception> |
downloadTo(URLConnection connection,
Path destination,
UrlStreams.DownloadCopyListener copyListener) |
static URLConnection |
urlConnectionOf(URL url,
String userAgent,
TimeoutConfig timeoutConfig,
Optional<Proxy> proxy) |
public static <E extends Exception> void downloadTo(URLConnection connection, Path destination, UrlStreams.DownloadCopyListener copyListener) throws IOException
IOExceptionprotected static <E extends Exception> void downloadTo(URLConnection connection, Path destination, de.flapdoodle.types.ThrowingFunction<URLConnection,Path,E> urlToTempFile) throws IOException, E extends Exception
IOExceptionE extends Exceptionprotected static Path downloadIntoTempFile(URLConnection connection, UrlStreams.DownloadCopyListener copyListener) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic static URLConnection urlConnectionOf(URL url, String userAgent, TimeoutConfig timeoutConfig, Optional<Proxy> proxy) throws IOException
IOExceptionpublic static UrlStreams.DownloadCopyListener downloadCopyListenerDelegatingTo(ProgressListener progressListener)
Copyright © 2022. All rights reserved.