|
||||||||||
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(String target)
Constructor |
Method Summary | |
---|---|
boolean |
isDirectory()
Determine if the target is a directory |
String |
toString()
Get the target name. |
URL |
toURL()
Convert the target to a URL. |
List<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(String target)
target
- A file, URL, or directory.Method Detail |
---|
public boolean isDirectory()
public String toString()
toString
in class Object
public URL toURL() throws MalformedURLException
MalformedURLException
public List<URL> traverse(boolean recurse) throws IOException, BadLocationException
recurse
- Set to 'true' to recursively traverse the target,
'false' otherwise
BadLocationException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |