public class MirageDriver extends Object
MIRAGE_CLASS
must be on the JVM's classpath
in order for this to work. No Mirage components need to be available
during compilation or distribution of this code however.
This is desirable since Mirage is distributed under a more restrictive
licence than the GPL.Modifier and Type | Field and Description |
---|---|
static String |
MIRAGE_CLASS
Name of the main Mirage application class.
|
static String |
MIRAGE_CLASSPATH_PROP
Name of the property used to locate the
MIRAGE_CLASS class. |
Constructor and Description |
---|
MirageDriver() |
Modifier and Type | Method and Description |
---|---|
static void |
invokeMirage(StarTable table,
List margs)
Invokes the Mirage application on a StarTable object.
|
static boolean |
isMirageAvailable()
Indicates whether the Mirage application is available in this JVM.
|
static void |
main(String[] args)
Invoke the Mirage application on a list of named StarTables.
|
public static final String MIRAGE_CLASS
public static final String MIRAGE_CLASSPATH_PROP
MIRAGE_CLASS
class.public static void main(String[] args) throws IOException, Exception
-d
flag this command can also be used to
dump the mirage-formatted version of a given table to
standard output.args
- flags and names of the StarTables to pass to MirageIOException
Exception
public static boolean isMirageAvailable()
invokeMirage(uk.ac.starlink.table.StarTable, java.util.List)
method will only work if this method
returns true
.true
iff the class MIRAGE_CLASS does not
exist on the path named by the property MIRAGE_CLASSPATH_PROPpublic static void invokeMirage(StarTable table, List margs) throws ClassNotFoundException, Exception
table
- the StarTable to pass to Miragemargs
- a list of other arguments (Strings) to pass as arguments
to MirageClassNotFoundException
- if isMirageAvailable()
returns false
Exception
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.