|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.util.Path
Path is a helper class used to create a valid path name given two or more
input path strings. Note that the SEPARATOR used in this class is
really the value returned by System.getProperty("file.separator").
| Field Summary | |
static String |
ROOT
The system root path. |
static String |
SEPARATOR
The system path separator. |
static String |
UNIX_SEPARATOR
The UNIX path separator. |
static String |
WINDOWS_SEPARATOR
The Windows path separator. |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
Path()
Constructs a new Path object. |
|
| Method Summary | |
String |
create(String path)
Create a valid path name. |
String |
create(String[] paths)
Create a valid path name from the supplied path strings. |
String |
create(String path1,
String path2)
Create a valid path name from two input path strings. |
String |
create(String path1,
String path2,
String path3)
Create a valid path name from three input path strings.. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ROOT
public static final String SEPARATOR
public static final String UNIX_SEPARATOR
public static final String WINDOWS_SEPARATOR
| Constructor Detail |
public Path()
| Method Detail |
public String create(String path)
public String create(String path1,
String path2)
public String create(String path1,
String path2,
String path3)
public String create(String[] paths)
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||