|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.flexmojos.utilities.PathUtil
public class PathUtil
this class provides functions used to generate a relative path from two absolute paths
| Constructor Summary | |
|---|---|
PathUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getRelativePath(java.io.File home,
java.io.File f)
get relative path of File 'f' with respect to 'home' directory example : home = /a/b/c f = /a/d/e/x.txt s = getRelativePath(home,f) = ../.. |
static void |
main(java.lang.String[] args)
test the function |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathUtil()
| Method Detail |
|---|
public static java.lang.String getRelativePath(java.io.File home,
java.io.File f)
home - base path, should be a directory, not a file, or it doesn't make sensef - file to generate path for
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||