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) |
static File |
saveInTemporaryVitamFolder(InputStream inputStream)
Save some imput stream in vitam temporary Folder
|
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 readXMLStreamExceptionIOExceptionpublic static File saveInTemporaryVitamFolder(InputStream inputStream) throws IOException
inputStream - the input stremIOException - the IOExceptionCopyright © 2018 Vitam. All rights reserved.