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 StringbasicBrowser(String url) Displays a URL in a basic HTML viewer.static StringDisplays a URL in a Firefox web browser.static StringDisplays a URL in a web browser from the Mozilla family; it must support flags of the type "-remote openURL(url)".static StringDisplays a URL in a Mozilla web browser.static StringDisplays a URL in a Netscape web browser.static StringsystemBrowser(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
-
firefox
-
netscape
-
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
-