Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addLines(String url,
Set<String> set) |
static List<ClassLoader> |
getClassLoaders()
Returns default classloaders.
|
static InputStream |
getStreamForUrl(String url,
ClassLoader loader) |
static String |
readFile(File file) |
static String |
readFileOrThrow(File file)
Reads the contents of a File
|
static boolean |
writeFile(File file,
String content) |
static void |
writeFileOrThrow(File file,
String content) |
public FileUtils()
public static InputStream getStreamForUrl(String url, ClassLoader loader) throws MalformedURLException, IOException
MalformedURLException
IOException
public static List<ClassLoader> getClassLoaders()
public static boolean addLines(String url, Set<String> set) throws MalformedURLException, IOException
MalformedURLException
IOException
public static String readFileOrThrow(File file) throws FileNotFoundException, IOException
file
- IOException
FileNotFoundException
public static void writeFileOrThrow(File file, String content) throws IOException
IOException