public class FileUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileUtils.Filters |
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deleteFileOrDirectoryIfExists(File fileOrDirectory) |
static File[] |
findFiles(File folder,
String prefix,
String suffix) |
static void |
forEach(Path p,
java.util.function.Consumer<Path> consumer) |
static void |
forEach(Path p,
java.util.function.Predicate<Path> filter,
java.util.function.Consumer<Path> consumer) |
static Collection<Path> |
list(Path p) |
static Collection<Path> |
list(Path p,
java.util.function.Predicate<Path> filter) |
public static boolean deleteFileOrDirectoryIfExists(File fileOrDirectory)
public static Collection<Path> list(Path p) throws IOException
IOException
public static Collection<Path> list(Path p, java.util.function.Predicate<Path> filter) throws IOException
IOException
public static void forEach(Path p, java.util.function.Consumer<Path> consumer) throws IOException
IOException
public static void forEach(Path p, java.util.function.Predicate<Path> filter, java.util.function.Consumer<Path> consumer) throws IOException
IOException
Copyright © GigaSpaces.