public class URLConnections extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
URLConnections.DownloadCopyListener |
| Constructor and Description |
|---|
URLConnections() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
downloadIntoByteArray(URLConnection connection) |
static byte[] |
downloadIntoByteArray(URLConnection connection,
URLConnections.DownloadCopyListener copyListener) |
static void |
downloadIntoFile(URLConnection connection,
Path tempFile,
URLConnections.DownloadCopyListener copyListener) |
static Path |
downloadIntoTempFile(URLConnection connection) |
static Path |
downloadIntoTempFile(URLConnection connection,
URLConnections.DownloadCopyListener copyListener) |
static URLConnection |
urlConnectionOf(URL url) |
static URLConnection |
urlConnectionOf(URL url,
Proxy proxy) |
public static URLConnection urlConnectionOf(URL url) throws IOException
IOExceptionpublic static URLConnection urlConnectionOf(URL url, Proxy proxy) throws IOException
IOExceptionpublic static byte[] downloadIntoByteArray(URLConnection connection) throws IOException
IOExceptionpublic static byte[] downloadIntoByteArray(URLConnection connection, URLConnections.DownloadCopyListener copyListener) throws IOException
IOExceptionpublic static Path downloadIntoTempFile(URLConnection connection) throws IOException
IOExceptionpublic static Path downloadIntoTempFile(URLConnection connection, URLConnections.DownloadCopyListener copyListener) throws IOException
IOExceptionpublic static void downloadIntoFile(URLConnection connection, Path tempFile, URLConnections.DownloadCopyListener copyListener) throws IOException
IOExceptionCopyright © 2023. All rights reserved.