|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.citool.target.Target
public class Target
Class to support target URLs, files, and directories.
Constructor Summary | |
---|---|
Target(java.lang.String target)
Constructor |
Method Summary | |
---|---|
boolean |
isDirectory()
Determine if the target is a directory |
java.lang.String |
toString()
Get the target name. |
java.net.URL |
toURL()
Convert the target to a URL. |
java.util.List<java.net.URL> |
traverse(boolean recurse)
Traverse the target directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Target(java.lang.String target)
target
- A file, URL, or directory.Method Detail |
---|
public boolean isDirectory()
public java.lang.String toString()
toString
in class java.lang.Object
public java.net.URL toURL() throws java.net.MalformedURLException
java.net.MalformedURLException
public java.util.List<java.net.URL> traverse(boolean recurse) throws java.lang.Exception
recurse
- Set to 'true' to recursively traverse the target,
'false' otherwise
java.lang.Exception
- If there was an error traversing the directory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |