Package gw.util
Class PathUtil
- java.lang.Object
-
- gw.util.PathUtil
-
public class PathUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description PathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canWrite(Path path)
static Path
create(String first, String... more)
static Path
create(URI uri)
static Path
create(Path root, String createMe)
static InputStream
createInputStream(Path path, OpenOption... options)
static boolean
createNewFile(Path file, FileAttribute... attrs)
static OutputStream
createOutputStream(Path path, OpenOption... options)
static BufferedReader
createReader(Path file)
static BufferedWriter
createWriter(Path path)
static void
delete(Path path)
static void
delete(Path path, boolean bRecursive)
static boolean
exists(Path path, LinkOption... options)
static Path
getAbsolutePath(String path)
static Path
getAbsolutePath(Path path)
static String
getAbsolutePathName(String path)
static String
getAbsolutePathName(Path path)
static IFile
getIFile(Path classFile)
static String
getName(Path path)
static boolean
isDirectory(Path fileOrDir, LinkOption... options)
static boolean
isFile(Path path, LinkOption... options)
static long
lastModified(Path path, LinkOption... options)
static Path[]
listFiles(Path path)
static boolean
mkdir(Path copy, FileAttribute... attrs)
static boolean
mkdirs(Path path)
static boolean
renameTo(Path from, Path to, CopyOption... options)
static boolean
setWritable(Path file, boolean bWritable)
-
-
-
Method Detail
-
mkdirs
public static boolean mkdirs(Path path)
-
mkdir
public static boolean mkdir(Path copy, FileAttribute... attrs)
-
isFile
public static boolean isFile(Path path, LinkOption... options)
-
isDirectory
public static boolean isDirectory(Path fileOrDir, LinkOption... options)
-
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)
-
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)
-
-