|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.vtool.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<Target> |
traverse(boolean recurse,
List<String> filesToFind,
List<String> filesToSkip,
List<String> dirsToSkip)
Traverse the target directory. |
List<Target> |
traverse(List<String> filesToFind,
List<String> filesToSkip,
List<String> dirsToSkip)
|
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<Target> traverse(List<String> filesToFind, List<String> filesToSkip, List<String> dirsToSkip) throws Exception
Exception
public List<Target> traverse(boolean recurse, List<String> filesToFind, List<String> filesToSkip, List<String> dirsToSkip) throws Exception
recurse
- Set to 'true' to recursively traverse the target,
'false' otherwise
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 |