public class ExampleUtil extends Object
| Constructor and Description |
|---|
ExampleUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
goTo(WorldWindow wwd,
Sector sector)
Causes the View attached to the specified WorldWindow to animate to the specified sector.
|
static File |
saveResourceToTempFile(String path,
String suffix)
Saves the file at the specified path in a temporary directory and returns a File to the temporary location.
|
static File |
unzipAndSaveToTempFile(String path,
String suffix)
Unzips the sole entry in the specified zip file, and saves it in a temporary directory, and returns a File to the
temporary location.
|
public static void goTo(WorldWindow wwd, Sector sector)
wwd - the WorldWindow who's View animates.sector - the sector to go to.IllegalArgumentException - if either the wwd or the sector are
null.public static File saveResourceToTempFile(String path, String suffix)
InputStreamURLURIFileString containing a valid URL
description or a file or resource name available on the classpath.path - the path to the source file.suffix - the suffix to give the temp file.File for the temp file.IllegalArgumentException - if the path is null or empty.public static File unzipAndSaveToTempFile(String path, String suffix)
path - the path to the source file.suffix - the suffix to give the temp file.File for the temp file.IllegalArgumentException - if the path is null or empty.