|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.util.FileUtil
File utilities
Constructor Summary | |
FileUtil()
|
Method Summary | |
static java.lang.String |
assemblePath(java.lang.String path1,
java.lang.String path2)
This method assembles two paths, putting exactly one '/' between them, irrespective of whether the first ends with one, the second starts with one or not. |
static java.lang.String |
getParentDirectory(java.lang.String pathname)
Method getDirectory() will retrieve the parent directory of the filename. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileUtil()
Method Detail |
public static java.lang.String assemblePath(java.lang.String path1, java.lang.String path2)
path1
- If this is null, the second path will get a leading '/'
if there is none yetpath2
- If this is null, path1 is returned as is.
public static java.lang.String getParentDirectory(java.lang.String pathname)
pathname
- a file path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |