|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.util.launcher.LauncherManager
public class LauncherManager
Manager class providing static functions which handle the OS dependent opening of files with the correct program.
Method Summary | |
---|---|
void |
add(Launcher launcher)
|
static java.lang.Process |
exec(java.lang.String[] args)
Executes args using the system runtime. |
static java.lang.Process |
exec(java.lang.String command,
java.io.File[] files)
Executes command. |
Launcher |
get(java.lang.String type)
|
static LauncherManager |
getInstance()
|
static boolean |
isEnabled()
|
java.util.Iterator |
iterator()
|
static void |
open(java.io.File file)
|
static void |
open(java.net.URL url)
|
void |
remove(Launcher launcher)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LauncherManager getInstance()
public static boolean isEnabled()
public static void open(java.io.File file) throws java.io.IOException
java.io.IOException
public static void open(java.net.URL url) throws java.io.IOException
java.io.IOException
public void add(Launcher launcher)
public Launcher get(java.lang.String type)
public java.util.Iterator iterator()
public void remove(Launcher launcher)
public static java.lang.Process exec(java.lang.String[] args) throws java.io.IOException
args
using the system runtime.
Writes the output to console if "captureLauncherOutput"
preference is true.
java.io.IOException
public static java.lang.Process exec(java.lang.String command, java.io.File[] files) throws java.io.IOException
files
. If command
does not contain
"{}", files
are appended.
command
- tokenized by QuotedStringTokenizer
files
- if null, no additional arguments are appended
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |