public class FS extends Object
Constructor and Description |
---|
FS() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canReadDirectory(Path path) |
static boolean |
canReadFile(Path path) |
static boolean |
canWrite(Path path) |
static void |
close(Closeable c) |
static boolean |
createNewFile(Path path) |
static void |
ensureDirectoryExists(Path dir) |
static void |
ensureDirectoryWritable(Path dir) |
static boolean |
exists(Path path) |
static boolean |
isPropertyFile(String filename) |
static boolean |
isValidDirectory(Path path) |
static boolean |
isXml(String filename) |
static String |
separators(String path) |
static Path |
toPath(String path) |
static Path |
toRealPath(Path path) |
static String |
toRelativePath(File baseDir,
File path) |
static void |
touch(Path path) |
public static boolean canReadDirectory(Path path)
public static boolean canReadFile(Path path)
public static boolean canWrite(Path path)
public static void close(Closeable c)
public static boolean createNewFile(Path path) throws IOException
IOException
public static void ensureDirectoryExists(Path dir) throws IOException
IOException
public static void ensureDirectoryWritable(Path dir) throws IOException
IOException
public static boolean exists(Path path)
public static boolean isValidDirectory(Path path)
public static boolean isXml(String filename)
public static boolean isPropertyFile(String filename)
public static void touch(Path path) throws IOException
IOException
public static Path toRealPath(Path path) throws IOException
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.