Package gw.util
Class PathUtil
java.lang.Object
gw.util.PathUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static Path
static Path
static Path
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
static void
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
static String
static boolean
isDirectory
(Path fileOrDir, LinkOption... options) static boolean
isFile
(Path path, LinkOption... options) static long
lastModified
(Path path, LinkOption... options) static Path[]
static boolean
mkdir
(Path copy, FileAttribute... attrs) static boolean
static boolean
renameTo
(Path from, Path to, CopyOption... options) private static Path
resolveRelativePath
(String first, String... more) static boolean
setWritable
(Path file, boolean bWritable)
-
Constructor Details
-
PathUtil
public PathUtil()
-
-
Method Details
-
mkdirs
-
mkdir
-
getName
-
isFile
-
isDirectory
-
create
-
create
-
create
-
resolveRelativePath
-
getAbsolutePathName
-
getAbsolutePathName
-
getAbsolutePath
-
getAbsolutePath
-
listFiles
-
createNewFile
-
createReader
-
createWriter
-
createOutputStream
-
createInputStream
-
getIFile
-
delete
-
delete
-
exists
-
lastModified
-
renameTo
-
canWrite
-
setWritable
-