public abstract class HttpUtil extends Object
| Constructor and Description |
|---|
HttpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
download(String url,
File file) |
static void |
download(String url,
OutputStream output) |
static void |
download(URL url,
File file) |
static void |
download(URL url,
OutputStream output) |
static byte[] |
getBytesFromUrl(String urlString) |
static byte[] |
getBytesFromUrl(URL url) |
static String |
getStringFromUrl(String urlString) |
public static final byte[] getBytesFromUrl(String urlString) throws IOException
IOExceptionpublic static final byte[] getBytesFromUrl(URL url) throws IOException
IOExceptionpublic static final String getStringFromUrl(String urlString) throws IOException
IOExceptionpublic static void download(String url, File file) throws IOException
IOExceptionpublic static void download(URL url, File file) throws IOException
IOExceptionpublic static void download(String url, OutputStream output) throws IOException
IOExceptionpublic static void download(URL url, OutputStream output) throws IOException
IOExceptionCopyright © 2015 Universal Java Matrix Package. All rights reserved.