public class IoUtil
extends java.lang.Object
| Constructor and Description |
|---|
IoUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(java.io.Closeable... closeables) |
static void |
copyFile(java.io.File source,
java.io.File target) |
static void |
copyStream(java.io.InputStream in,
java.io.OutputStream out) |
static void |
createDirectory(java.io.File dir) |
static java.lang.String |
getText(java.io.File path)
Returns the text read from the given file as a String.
|
static java.lang.String |
getText(java.io.InputStream stream)
Returns the text read from the given stream as a String.
|
static java.lang.String |
getText(java.io.Reader reader)
Returns the text read from the given reader as a String.
|
public static void closeQuietly(java.io.Closeable... closeables)
public static java.lang.String getText(java.io.Reader reader)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getText(java.io.File path)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getText(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic static void createDirectory(java.io.File dir)
throws java.io.IOException
java.io.IOExceptionpublic static void copyStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic static void copyFile(java.io.File source,
java.io.File target)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionCopyright © 2013. All rights reserved