public final class FileUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
deleteRecursive(File file)
CARE: delete all files and directories from this file or directory, this one included
|
static String |
readFile(File file) |
static String |
readFile(String filename) |
static String |
readInputStream(InputStream input) |
static String |
readPartialFile(File file,
int limit) |
public static final String readFile(String filename) throws IOException
filename - IOExceptionpublic static final String readFile(File file) throws IOException
file - IOExceptionpublic static final String readPartialFile(File file, int limit) throws IOException
file - limit - the limit in bytes to readIOExceptionpublic static final boolean deleteRecursive(File file)
file - public static final String readInputStream(InputStream input) throws IOException
input - to readXMLStreamExceptionIOExceptionCopyright © 2018 Vitam. All rights reserved.