cs1705
Class Browser

java.lang.Object
  extended by cs1705.Browser

public class Browser
extends Object

This class provides a simple interface to your web browser. The primary capability it currently supports is opening a URL in a browser window.

Version:
2003.09.25
Author:
Stephen Edwards

Method Summary
static void openFile(File file)
          Display a file in the system browser.
static void openFile(String pathname)
          Display a file in the system browser.
static void openURL(String url)
          Display a URL in the system browser.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

openFile

public static void openFile(File file)
Display a file in the system browser.

Parameters:
file - the file to display

openFile

public static void openFile(String pathname)
Display a file in the system browser.

Parameters:
pathname - a relative or absolute path designating the file to display

openURL

public static void openURL(String url)
Display a URL in the system browser.

Parameters:
url - the url to display