Package gw.util
Class PathUtil
java.lang.Object
gw.util.PathUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic Pathstatic Pathstatic Pathstatic 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 voidstatic voidstatic booleanexists(Path path, LinkOption... options) static PathgetAbsolutePath(String path) static PathgetAbsolutePath(Path path) static StringgetAbsolutePathName(String path) static StringgetAbsolutePathName(Path path) static IFilestatic Stringstatic booleanisDirectory(Path fileOrDir, LinkOption... options) static booleanisFile(Path path, LinkOption... options) static longlastModified(Path path, LinkOption... options) static Path[]static booleanmkdir(Path copy, FileAttribute... attrs) static booleanstatic booleanrenameTo(Path from, Path to, CopyOption... options) private static PathresolveRelativePath(String first, String... more) static booleansetWritable(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
-