|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwindx.examples.dataimport.DataInstallUtil
public class DataInstallUtil
DataInstallUtil is a collection of utility methods for common data import tasks.
| Constructor Summary | |
|---|---|
DataInstallUtil()
|
|
| Method Summary | |
|---|---|
static File |
getDefaultInstallLocation(FileStore fileStore)
Returns a location in the specified FileStore which should be used as the
default location for installing data. |
static boolean |
isDataRaster(Object source,
AVList params)
Returns true if the specified input source is non-null and represents a data raster (imagery or elevation), and false otherwise. |
static boolean |
isWWDotNetLayerSet(Object source)
Returns true if the specified input source is non-null and represents a reference to a World Wind .NET LayerSet XML document, and false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataInstallUtil()
| Method Detail |
|---|
public static File getDefaultInstallLocation(FileStore fileStore)
FileStore which should be used as the
default location for installing data. This attempts to use the first FileStore location marked as an "install"
location. If no install location exists, this falls back to the FileStore's default write location, the same
location where downloaded data is cached.
The returned File represents an abstract path, and therefore may not exist. In this case, the
caller must create the missing directories composing the abstract path.
fileStore - the FileStore to determine the default location for installing data.
IllegalArgumentException - if the FileStore is null.
public static boolean isDataRaster(Object source,
AVList params)
source - the input source reference to test as a data raster.params - the parameter list associated with the input source, or null to indicate there are no
known parameters. If the raster is already known to be imagery or elevation data, specify a
non-null parameter list with the key AVKey.PIXEL_FORMAT set to
AVKey.IMAGE or AVKey.ELEVATION.
true if the input source is data raster, and false otherwise.
IllegalArgumentException - if the input source is null.public static boolean isWWDotNetLayerSet(Object source)
source - the input source reference to test as a World Wind .NET LayerSet document.
IllegalArgumentException - if the input source is null.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||