|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jicengine.io.PathResolver
Constructor Summary | |
PathResolver()
|
Method Summary | |
static java.lang.String |
getPathOf(java.io.File file)
|
static java.lang.String |
getRealPath(java.lang.String contextPath,
java.lang.String relativePath)
Forms a real path from a base-path and a relative path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PathResolver()
Method Detail |
public static java.lang.String getRealPath(java.lang.String contextPath, java.lang.String relativePath)
Forms a real path from a base-path and a relative path.
For example,
'/directory/file1.txt' + 'file2.txt' -> '/directory/file2.txt'
'/directory/file1.txt' + '../file2.txt' -> '/file2.txt'
'/directory/subdir/' + 'file2.txt' -> '/directory/subdir/file2.txt'
'/directory/file1.txt' + 'subdir/' -> '/directory/subdir/'
contextPath
- relativePath
- public static java.lang.String getPathOf(java.io.File file)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |