|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kiwi.util.DirectoryPath
A convenience class for maintaining a directory path (that is, an ordered list of directories).
Constructor Summary | |
DirectoryPath()
Construct a new, empty DirectoryPath . |
|
DirectoryPath(String[] dirs)
Construct a new DirectoryPath for the given directories. |
Method Summary | |
void |
append(String dir)
Append a directory to the end of the path. |
void |
append(String[] dirs)
Append a list directories to the end of the path. |
String[] |
getDirectories()
Get the list of directories for this path. |
void |
prepend(String dir)
Prepend a directory to the beginning of the path. |
void |
prepend(String[] dirs)
Prepend a list directories to the beginning of the path. |
String |
toString()
Convert this path to a string, using the appropriate path separator for this platform. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public DirectoryPath()
DirectoryPath
.public DirectoryPath(String[] dirs)
DirectoryPath
for the given directories.dirs
- An array of directory names.Method Detail |
public void prepend(String dir)
dir
- The directory to add.public void prepend(String[] dirs)
dirs
- The directories to add.public void append(String dir)
dir
- The directory to add.public void append(String[] dirs)
dirs
- The directories to add.public String[] getDirectories()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |