|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.toolchain.test.IO
public final class IO
IO Utilities.
Nested Class Summary | |
---|---|
static class |
IO.SafeFileFilter
|
Field Summary | |
---|---|
static int |
BUFFER_SIZE
|
Method Summary | |
---|---|
static void |
close(Closeable c)
closes an Closeable , and silently ignores exceptions |
static void |
copy(File from,
File to)
Copy files or directories |
static void |
copy(InputStream in,
OutputStream out)
|
static void |
copy(Reader in,
Writer out)
Copy Reader to Writer out until EOF or exception. |
static void |
copyDir(File from,
File to)
|
static void |
copyFile(File from,
File to)
|
static String |
readToString(File file)
Read the contents of a file into a String and return it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BUFFER_SIZE
Method Detail |
---|
public static void copy(Reader in, Writer out) throws IOException
IOException
public static String readToString(File file) throws IOException
file
- the file to read.
IOException
- if unable to read the file.public static void close(Closeable c)
Closeable
, and silently ignores exceptions
c
- the closeable to closepublic static void copy(File from, File to) throws IOException
from
- to
-
IOException
public static void copyDir(File from, File to) throws IOException
IOException
public static void copy(InputStream in, OutputStream out) throws IOException
IOException
public static void copyFile(File from, File to) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |