public class FS extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FS.AllFilter |
static class |
FS.DirFilter |
static class |
FS.FilenameRegexFilter |
static class |
FS.FileNamesFilter |
static class |
FS.IniFilter |
static class |
FS.RelativeRegexFilter |
static class |
FS.XmlFilter |
Constructor and Description |
---|
FS() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canReadDirectory(File path) |
static boolean |
canReadFile(File path) |
static void |
close(Closeable c) |
static void |
ensureDirectoryExists(File dir) |
static void |
ensureDirectoryWritable(File dir) |
static boolean |
isFile(File file) |
static boolean |
isXml(String filename) |
static String |
separators(String path) |
static String |
toRelativePath(File baseDir,
File path) |
public static boolean canReadDirectory(File path)
public static boolean canReadFile(File path)
public static void close(Closeable c)
public static void ensureDirectoryExists(File dir) throws IOException
IOException
public static void ensureDirectoryWritable(File dir) throws IOException
IOException
public static boolean isFile(File file)
public static boolean isXml(String filename)
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.