public class Target
extends java.lang.Object
Constructor and Description |
---|
Target(java.lang.String target)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Target(java.lang.String target)
target
- A file, URL, or directory.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.io.IOException, javax.swing.text.BadLocationException
recurse
- Set to 'true' to recursively traverse the target,
'false' otherwisejavax.swing.text.BadLocationException
java.io.IOException
Copyright © 2010-2019 Planetary Data System. All Rights Reserved.