Class FS

java.lang.Object
org.eclipse.jetty.start.FS

public class FS extends Object
  • Constructor Details

    • FS

      public FS()
  • Method Details

    • 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)
    • toRelativePath

      public static String toRelativePath(File baseDir, File path)
    • isPropertyFile

      public static boolean isPropertyFile(String filename)
    • separators

      public static String separators(String path)
    • toPath

      public static Path toPath(String path)
    • touch

      public static void touch(Path path) throws IOException
      Throws:
      IOException
    • toRealPath

      public static Path toRealPath(Path path) throws IOException
      Throws:
      IOException
    • extract

      public static void extract(Path archive, Path destination) throws IOException
      Throws:
      IOException
    • extractZip

      public static void extractZip(Path archive, Path destination) throws IOException
      Throws:
      IOException
    • copyZipContents

      public static void copyZipContents(Path root, Path destination) throws IOException
      Throws:
      IOException