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 booleancanWrite(Path path)static Pathcreate(String first, String... more)static Pathcreate(URI uri)static Pathcreate(Path root, String createMe)static InputStreamcreateInputStream(Path path, OpenOption... options)static booleancreateNewFile(Path file, FileAttribute... attrs)static OutputStreamcreateOutputStream(Path path, OpenOption... options)static BufferedReadercreateReader(Path file)static BufferedWritercreateWriter(Path path)static voiddelete(Path path)static voiddelete(Path path, boolean bRecursive)static booleanexists(Path path, LinkOption... options)static PathgetAbsolutePath(String path)static PathgetAbsolutePath(Path path)static StringgetAbsolutePathName(String path)static StringgetAbsolutePathName(Path path)static IFilegetIFile(Path classFile)static StringgetName(Path path)static booleanisDirectory(Path fileOrDir, LinkOption... options)static booleanisFile(Path path, LinkOption... options)static longlastModified(Path path, LinkOption... options)static Path[]listFiles(Path path)static booleanmkdir(Path copy, FileAttribute... attrs)static booleanmkdirs(Path path)static booleanrenameTo(Path from, Path to, CopyOption... options)static booleansetWritable(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)
-
-