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.IOException
public static java.lang.String getText(java.io.File path) throws java.io.IOException
java.io.IOException
public static java.lang.String getText(java.io.InputStream stream) throws java.io.IOException
java.io.IOException
public static void createDirectory(java.io.File dir) throws java.io.IOException
java.io.IOException
public static void copyStream(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static void copyFile(java.io.File source, java.io.File target) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
Copyright © 2019. All rights reserved