Class FS


  • public class FS
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FS()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canReadDirectory​(java.nio.file.Path path)  
      static boolean canReadFile​(java.nio.file.Path path)  
      static boolean canWrite​(java.nio.file.Path path)  
      static void close​(java.io.Closeable c)  
      static boolean createNewFile​(java.nio.file.Path path)  
      static boolean ensureDirectoryExists​(java.nio.file.Path dir)  
      static void ensureDirectoryWritable​(java.nio.file.Path dir)  
      static boolean exists​(java.nio.file.Path path)  
      static boolean isPropertyFile​(java.lang.String filename)  
      static boolean isValidDirectory​(java.nio.file.Path path)  
      static boolean isXml​(java.lang.String filename)  
      static java.lang.String separators​(java.lang.String path)  
      static java.nio.file.Path toPath​(java.lang.String path)  
      static java.nio.file.Path toRealPath​(java.nio.file.Path path)  
      static java.lang.String toRelativePath​(java.io.File baseDir, java.io.File path)  
      static void touch​(java.nio.file.Path path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FS

        public FS()
    • Method Detail

      • canReadDirectory

        public static boolean canReadDirectory​(java.nio.file.Path path)
      • canReadFile

        public static boolean canReadFile​(java.nio.file.Path path)
      • canWrite

        public static boolean canWrite​(java.nio.file.Path path)
      • close

        public static void close​(java.io.Closeable c)
      • createNewFile

        public static boolean createNewFile​(java.nio.file.Path path)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • ensureDirectoryExists

        public static boolean ensureDirectoryExists​(java.nio.file.Path dir)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • ensureDirectoryWritable

        public static void ensureDirectoryWritable​(java.nio.file.Path dir)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • exists

        public static boolean exists​(java.nio.file.Path path)
      • isValidDirectory

        public static boolean isValidDirectory​(java.nio.file.Path path)
      • isXml

        public static boolean isXml​(java.lang.String filename)
      • toRelativePath

        public static java.lang.String toRelativePath​(java.io.File baseDir,
                                                      java.io.File path)
      • isPropertyFile

        public static boolean isPropertyFile​(java.lang.String filename)
      • separators

        public static java.lang.String separators​(java.lang.String path)
      • toPath

        public static java.nio.file.Path toPath​(java.lang.String path)
      • touch

        public static void touch​(java.nio.file.Path path)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • toRealPath

        public static java.nio.file.Path toRealPath​(java.nio.file.Path path)
                                             throws java.io.IOException
        Throws:
        java.io.IOException