public class Browsers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
basicBrowser(java.lang.String url)
Displays a URL in a basic HTML viewer.
|
static java.lang.String |
firefox(java.lang.String url)
Displays a URL in a Firefox web browser.
|
static java.lang.String |
mozalike(java.lang.String cmd,
java.lang.String url)
Displays a URL in a web browser from the Mozilla family;
it must support flags of the type
"
-remote openURL( url) ". |
static java.lang.String |
mozilla(java.lang.String url)
Displays a URL in a Mozilla web browser.
|
static java.lang.String |
netscape(java.lang.String url)
Displays a URL in a Netscape web browser.
|
static java.lang.String |
systemBrowser(java.lang.String url)
Attempts to display a URL in the system's default web browser.
|
public static java.lang.String basicBrowser(java.lang.String url)
url
- location of the document to displaypublic static java.lang.String systemBrowser(java.lang.String url)
url
- location of the document to displaypublic static java.lang.String mozilla(java.lang.String url)
url
- location of the document to displaypublic static java.lang.String firefox(java.lang.String url)
url
- location of the document to displaypublic static java.lang.String netscape(java.lang.String url)
url
- location of the document to displaypublic static java.lang.String mozalike(java.lang.String cmd, java.lang.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-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.