public class JiffleDemoHelper extends Object
Constructor and Description |
---|
JiffleDemoHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getScript(ImageChoice choice)
Gets an example script.
|
static File |
getScriptFile(String[] args,
ImageChoice defaultScript)
Gets a file specified in the command line args, or the default
example image if no name is supplied.
|
static String |
readScriptFile(File scriptFile)
Reads the contents of a script file.
|
public static String getScript(ImageChoice choice) throws JiffleException
choice
- specifies the example scriptJiffleException
- on errors getting the script filepublic static File getScriptFile(String[] args, ImageChoice defaultScript) throws JiffleException
args
- command lines args passed from an applicationdefaultScript
- default example scriptJiffleException
- on problems getting the filepublic static String readScriptFile(File scriptFile) throws JiffleException
scriptFile
- the fileJiffleException
- on problems reading the fileCopyright © 2006–2018 GeoSolutions. All rights reserved.