public class Files extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Files.FileDoesNotExistException |
static class |
Files.FileRuntimeException |
| Constructor and Description |
|---|
Files() |
| Modifier and Type | Method and Description |
|---|---|
static List<File> |
collect(File dir,
FileFilter filter) |
static List<File> |
collect(File dir,
Pattern pattern) |
static List<File> |
collect(File dir,
String regex) |
static void |
delete(File file) |
static void |
deleteOnExit(File file) |
static File |
dir(File file) |
static File |
exists(File file) |
static File |
exists(File file,
String s) |
static File |
file(File file) |
static void |
flagForDeleteOnExit(File file) |
static String |
hash(Set<URL> urls,
String algo) |
static Set<URL> |
listJars(String path) |
static File |
mkdir(File file) |
static File |
mkdir(File file,
String name) |
static File |
mkdirs(File file) |
static File |
mkparent(File file) |
static File |
notHidden(File file) |
static File |
path(File dir,
String... parts) |
static File |
path(String... parts) |
static File |
readable(File file) |
static File |
readableFile(File file) |
static void |
remove(File file) |
static File |
select(File dir,
String pattern) |
static File |
tmpdir() |
static File |
toFile(URL url) |
static File |
writable(File file) |
public static List<File> collect(File dir, FileFilter filter)
public static File tmpdir()
public static void deleteOnExit(File file)
public static void flagForDeleteOnExit(File file)
public static void delete(File file)
public static void remove(File file)
Copyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.