public final class IOUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static long |
copyFile(java.io.File dst,
java.io.File src)
Copy all bytes from an File to a File.
|
static long |
copyFile(java.io.OutputStream dst,
java.io.File src)
Copy all bytes from an File to an OutputStream.
|
static long |
copyStream(java.io.File dst,
java.io.InputStream src)
Copy all bytes from an InputStream to a File.
|
static long |
copyStream(java.io.OutputStream dst,
java.io.InputStream src)
Copy all bytes from one stream to another.
|
static long |
copyUrl(java.io.File dst,
java.net.URL src)
Copy all bytes from an URL to a File.
|
static long |
copyUrl(java.io.OutputStream dst,
java.net.URL src)
Copy all bytes from an URL to an OutputStream.
|
public static long copyStream(java.io.OutputStream dst,
java.io.InputStream src)
throws java.io.IOException
dst - The OutputStream to copy to.src - The InputStream to copy from.java.io.IOException - if an I/O error occurs.public static long copyStream(java.io.File dst,
java.io.InputStream src)
throws java.io.IOException
dst - The File to copy to.src - The InputStream to copy from.java.io.IOException - if an I/O error occurs.public static long copyFile(java.io.OutputStream dst,
java.io.File src)
throws java.io.IOException
dst - The OutputStream to copy to.src - The File to copy from.java.io.IOException - if an I/O error occurs.public static long copyFile(java.io.File dst,
java.io.File src)
throws java.io.IOException
dst - The File to copy to.src - The File to copy from.java.io.IOException - if an I/O error occurs.public static long copyUrl(java.io.OutputStream dst,
java.net.URL src)
throws java.io.IOException
dst - The OutputStream to copy to.src - The URL to copy from.java.io.IOException - if an I/O error occurs.public static long copyUrl(java.io.File dst,
java.net.URL src)
throws java.io.IOException
dst - The File to copy to.src - The URL to copy from.java.io.IOException - if an I/O error occurs.