Package org.eclipse.jetty.start
Class FS
- java.lang.Object
-
- org.eclipse.jetty.start.FS
-
public class FS extends Object
-
-
Constructor Summary
Constructors Constructor Description FS()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanReadDirectory(Path path)static booleancanReadFile(Path path)static booleancanWrite(Path path)static voidclose(Closeable c)static booleancreateNewFile(Path path)static booleanensureDirectoryExists(Path dir)static voidensureDirectoryWritable(Path dir)static booleanexists(Path path)static booleanisPropertyFile(String filename)static booleanisValidDirectory(Path path)static booleanisXml(String filename)static Stringseparators(String path)static PathtoPath(String path)static PathtoRealPath(Path path)static StringtoRelativePath(File baseDir, File path)static voidtouch(Path path)
-
-
-
Method Detail
-
canReadDirectory
public static boolean canReadDirectory(Path path)
-
canReadFile
public static boolean canReadFile(Path path)
-
canWrite
public static boolean canWrite(Path path)
-
close
public static void close(Closeable c)
-
createNewFile
public static boolean createNewFile(Path path) throws IOException
- Throws:
IOException
-
ensureDirectoryExists
public static boolean ensureDirectoryExists(Path dir) throws IOException
- Throws:
IOException
-
ensureDirectoryWritable
public static void ensureDirectoryWritable(Path dir) throws IOException
- Throws:
IOException
-
exists
public static boolean exists(Path path)
-
isValidDirectory
public static boolean isValidDirectory(Path path)
-
isXml
public static boolean isXml(String filename)
-
isPropertyFile
public static boolean isPropertyFile(String filename)
-
touch
public static void touch(Path path) throws IOException
- Throws:
IOException
-
toRealPath
public static Path toRealPath(Path path) throws IOException
- Throws:
IOException
-
-