public class Browsers extends Object
Modifier and Type | Method and Description |
---|---|
static String |
basicBrowser(String url)
Displays a URL in a basic HTML viewer.
|
static String |
firefox(String url)
Displays a URL in a Firefox web browser.
|
static String |
mozalike(String cmd,
String url)
Displays a URL in a web browser from the Mozilla family;
it must support flags of the type
"
-remote openURL( url) ". |
static String |
mozilla(String url)
Displays a URL in a Mozilla web browser.
|
static String |
netscape(String url)
Displays a URL in a Netscape web browser.
|
static String |
systemBrowser(String url)
Attempts to display a URL in the system's default web browser.
|
public static String basicBrowser(String url)
url
- location of the document to displaypublic static String systemBrowser(String url)
url
- location of the document to displaypublic static String mozilla(String url)
url
- location of the document to displaypublic static String firefox(String url)
url
- location of the document to displaypublic static String netscape(String url)
url
- location of the document to displaypublic static String mozalike(String cmd, String url)
-remote openURL(
url)
".
Probably only works on Unix-like operating systems, and only
if the browser is already running.cmd
- name or path of the browser commandurl
- location of the document to displayCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.