|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.win32.registry.BrowserPaths
public class BrowserPaths
This utility class provides path information on the browsers registered with the system.
For example, a default browser registered in the system can be launched using the following code:
String browserPath = BrowserPaths.getDefaultBrowserPath(); Runtime.getRuntime().exec(browserPath);
Method Summary | |
---|---|
static java.lang.String |
getDefaultBrowserCommand()
Retrieves the default browser command line from HKEY_CLASSES_ROOT\http\shell\open\command\default . |
static java.lang.String |
getDefaultBrowserPath()
Obtains the path to the default browser's executable file from the registry. |
static java.lang.String |
getFirefoxPath()
Obtains the path to firefox.exe from the registry. |
static java.lang.String |
getIExplorePath()
Obtains the path to iexplore.exe from the registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getDefaultBrowserCommand()
HKEY_CLASSES_ROOT\http\shell\open\command\default
.
Normally the command line includes a parameter placeholder.
public static java.lang.String getDefaultBrowserPath()
public static java.lang.String getIExplorePath()
iexplore.exe
from the registry.
public static java.lang.String getFirefoxPath()
firefox.exe
from the registry.
null
if the application is not installed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |