|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.classloader.ResourceUtils
Utility methods related to remote resource access.
Method Summary | |
static java.lang.String |
canonizePath(java.lang.String path)
Returns the path converted to the canonic form. |
static boolean |
isAbsolute(java.lang.String path)
|
static boolean |
isLocalFile(java.net.URI uri)
Checks if the URI points to the local file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean isLocalFile(java.net.URI uri)
uri
- the uri to check
public static java.lang.String canonizePath(java.lang.String path)
"/aaa/b/" -> "/aaa/b/" "/aaa/b/c/../.." -> "/aaa/" "/aaa/../bbb/cc/./.././../dd/eee/fff/." -> "/dd/eee/fff/" "../aaa/../././bbb/./../ccc/" -> "../ccc/" "aa/ddfdd/./sadfd/.././sdafa/../../.././././" -> "" "./aaa/." -> "aaa/" ".///aa//bb/" -> "aa/bb/" "../../aaa" -> "../../aaa" "/../../aaa" -> "/aaa"
public static boolean isAbsolute(java.lang.String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |