public final class FileHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
close(Closeable closeable)
Closes the given resource if it is available, logging any closing exceptions to the given log.
|
static void |
copyFile(File from,
File to) |
static List<String> |
loadFile(File file)
Loads the file
|
static List<String> |
loadFile(InputStream fis)
Loads the file
|
static String |
loadText(InputStream in)
Loads the entire stream into memory as a String and returns it.
|
public static String loadText(InputStream in) throws IOException
IOException
public static List<String> loadFile(File file) throws Exception
Exception
public static List<String> loadFile(InputStream fis) throws Exception
Exception
public static void copyFile(File from, File to) throws IOException
IOException
public static void close(Closeable closeable)
Apache Camel