Package gw.util

Class PathUtil

java.lang.Object
gw.util.PathUtil

public class PathUtil extends Object
  • Constructor Details

    • PathUtil

      public PathUtil()
  • Method Details

    • mkdirs

      public static boolean mkdirs(Path path)
    • mkdir

      public static boolean mkdir(Path copy, FileAttribute... attrs)
    • getName

      public static String getName(Path path)
    • isFile

      public static boolean isFile(Path path, LinkOption... options)
    • isDirectory

      public static boolean isDirectory(Path fileOrDir, LinkOption... options)
    • create

      public static Path create(String first, String... more)
    • create

      public static Path create(Path root, String createMe)
    • create

      public static Path create(URI uri)
    • resolveRelativePath

      private static Path resolveRelativePath(String first, String... more)
    • getAbsolutePathName

      public static String getAbsolutePathName(Path path)
    • getAbsolutePathName

      public static String getAbsolutePathName(String path)
    • getAbsolutePath

      public static Path getAbsolutePath(Path path)
    • getAbsolutePath

      public static Path getAbsolutePath(String path)
    • listFiles

      public static Path[] listFiles(Path path)
    • createNewFile

      public static boolean createNewFile(Path file, FileAttribute... attrs)
    • createReader

      public static BufferedReader createReader(Path file)
    • createWriter

      public static BufferedWriter createWriter(Path path)
    • createOutputStream

      public static OutputStream createOutputStream(Path path, OpenOption... options)
    • createInputStream

      public static InputStream createInputStream(Path path, OpenOption... options)
    • getIFile

      public static IFile getIFile(Path classFile)
    • delete

      public static void delete(Path path)
    • delete

      public static void delete(Path path, boolean bRecursive)
    • exists

      public static boolean exists(Path path, LinkOption... options)
    • lastModified

      public static long lastModified(Path path, LinkOption... options)
    • renameTo

      public static boolean renameTo(Path from, Path to, CopyOption... options)
    • canWrite

      public static boolean canWrite(Path path)
    • setWritable

      public static boolean setWritable(Path file, boolean bWritable)