public class DownloadTool extends Object
Constructor and Description |
---|
DownloadTool() |
Modifier and Type | Method and Description |
---|---|
static void |
channelCopy2(ReadableByteChannel src,
WritableByteChannel dest)
Channel copy method 2.
|
static void |
download(InputStream in,
File file) |
static void |
download(InputStream in,
OutputStream out) |
static void |
download(String resource,
File file) |
static void |
download(String resource,
OutputStream out) |
static void |
download(URL url,
File file) |
public static void download(URL url, File file) throws IOException
IOException
public static void download(InputStream in, File file) throws IOException
IOException
public static void download(InputStream in, OutputStream out) throws IOException
IOException
public static void download(String resource, OutputStream out) throws IOException
IOException
public static void download(String resource, File file) throws IOException
IOException
public static void channelCopy2(ReadableByteChannel src, WritableByteChannel dest) throws IOException
IOException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.