Package uk.ac.starlink.topcat.func
Class Browsers
java.lang.Object
uk.ac.starlink.topcat.func.Browsers
Displays URLs in web browsers.
- Since:
- 9 Jun 2005
- Author:
- Mark Taylor (Starlink)
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
basicBrowser
(String url) Displays a URL in a basic HTML viewer.static String
Displays a URL in a Firefox web browser.static String
Displays a URL in a web browser from the Mozilla family; it must support flags of the type "-remote openURL(
url)
".static String
Displays a URL in a Mozilla web browser.static String
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.
-
Method Details
-
basicBrowser
Displays a URL in a basic HTML viewer. This is only likely to work for HTML, text or RTF data. The browser can follow hyperlinks and has simple forward/back buttons, but lacks the sophistication of a proper WWW browser application.- Parameters:
url
- location of the document to display- Returns:
- short log message
-
systemBrowser
Attempts to display a URL in the system's default web browser. Exactly what couts as the default web browser is system dependent, as is whether this function will work properly.- Parameters:
url
- location of the document to display- Returns:
- short log message
-
mozilla
Displays a URL in a Mozilla web browser. Probably only works on Unix-like operating systems, and only if Mozilla is already running.- Parameters:
url
- location of the document to display- Returns:
- short log message
-
firefox
Displays a URL in a Firefox web browser. Probably only works on Unix-like operating systems, and only if Firefox is already running.- Parameters:
url
- location of the document to display- Returns:
- short log message
-
netscape
Displays a URL in a Netscape web browser. Probably only works on Unix-like operating systems, and only if Netscape is already running.- Parameters:
url
- location of the document to display- Returns:
- short log message
-
mozalike
Displays a URL in a web browser from the Mozilla family; it must support flags of the type "-remote openURL(
url)
". Probably only works on Unix-like operating systems, and only if the browser is already running.- Parameters:
cmd
- name or path of the browser commandurl
- location of the document to display- Returns:
- short log message
-