|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.util.DirectoryPath
A convenience class for maintaining a directory path (that is, an ordered list of directories).
Field Summary | |
private java.util.Vector |
_dirs
|
private java.lang.String |
psep
|
Constructor Summary | |
DirectoryPath()
Construct a new, empty DirectoryPath . |
|
DirectoryPath(java.lang.String[] dirs)
Construct a new DirectoryPath for the given directories. |
Method Summary | |
void |
append(java.lang.String dir)
Append a directory to the end of the path. |
void |
append(java.lang.String[] dirs)
Append a list directories to the end of the path. |
java.lang.String[] |
getDirectories()
Get the list of directories for this path. |
void |
prepend(java.lang.String dir)
Prepend a directory to the beginning of the path. |
void |
prepend(java.lang.String[] dirs)
Prepend a list directories to the beginning of the path. |
java.lang.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 |
Field Detail |
private java.lang.String psep
private java.util.Vector _dirs
Constructor Detail |
public DirectoryPath()
DirectoryPath
.
public DirectoryPath(java.lang.String[] dirs)
DirectoryPath
for the given directories.
dirs
- An array of directory names.Method Detail |
public void prepend(java.lang.String dir)
dir
- The directory to add.public void prepend(java.lang.String[] dirs)
dirs
- The directories to add.public void append(java.lang.String dir)
dir
- The directory to add.public void append(java.lang.String[] dirs)
dirs
- The directories to add.public java.lang.String[] getDirectories()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |