com.limegroup.gnutella.util
Class WindowsLauncher

java.lang.Object
  extended bycom.limegroup.gnutella.util.WindowsLauncher

public final class WindowsLauncher
extends java.lang.Object

Wrapper for calls to native Windows code that launches files in their associated applications.


Constructor Summary
WindowsLauncher()
           
 
Method Summary
 int launchFile(java.lang.String file)
          Launches the file with it's associated application on Windows.
 int openURL(java.lang.String url)
          Opens the specified url in the default web browser on the user's system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsLauncher

public WindowsLauncher()
Method Detail

launchFile

public int launchFile(java.lang.String file)
Launches the file with it's associated application on Windows.

Parameters:
file - the path of the file to launch
Returns:
an int for the exit code of the native method
Throws:
NullPointerException - if the file argument is null

openURL

public int openURL(java.lang.String url)
Opens the specified url in the default web browser on the user's system.

Parameters:
url - the url to open
Returns:
the return code of the native call
Throws:
NullPointerException - if the url argument is null