public class PathExtension extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PathExtension.OS |
| Constructor and Description |
|---|
PathExtension() |
| Modifier and Type | Method and Description |
|---|---|
static String |
FullPhysicalPath(String... paths)
Merge getApplicationPath() + path1 + path2 ...
|
static String |
getApplicationPath()
Get getApplicationPath,
either return D:\Codes\Git\JAVA\LinkFuture or \Codes\Git\JAVA\LinkFuture
|
static PathExtension.OS |
getOS() |
static boolean |
IsAbsolute(String path)
IsAbsolute Path, start with c:\\ in windows or start with /root/ in unix
|
static void |
setApplicationPath(String path) |
public static String FullPhysicalPath(String... paths)
public static boolean IsAbsolute(String path)
path - pathpublic static void setApplicationPath(String path)
public static String getApplicationPath()
public static PathExtension.OS getOS()
Copyright © 2016. All rights reserved.