public final class IOUtils
extends java.lang.Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static long |
copy(java.io.InputStream in,
java.io.OutputStream out)
Copy all bytes from
in to out. |
static long |
copy(java.io.Reader in,
java.io.Writer out)
Copy all characters from
in to out. |
static void |
deleteDirectory(java.nio.file.Path directory)
Delete a directory (and any contained file or sub-directory).
|
public static long copy(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in to out.in - The InputStream to read from.out - The OutputStream to write to.java.io.IOException - if an I/O error occurs.public static long copy(java.io.Reader in,
java.io.Writer out)
throws java.io.IOException
in to out.in - The Reader to read from.out - The Writer to write to.java.io.IOException - if an I/O error occurs.public static void deleteDirectory(java.nio.file.Path directory)
throws java.io.IOException
directory - The directory to delete.java.io.IOException - if an I/O error occurs.