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
- IOException
public static final String readFile(File file) throws IOException
file
- IOException
public static final String readPartialFile(File file, int limit) throws IOException
file
- limit
- the limit in bytes to readIOException
public static final boolean deleteRecursive(File file)
file
- public static final String readInputStream(InputStream input) throws IOException
input
- to readXMLStreamException
IOException
Copyright © 2018 Vitam. All rights reserved.