cz.psika.utils
Class BrowserLauncher

java.lang.Object
  extended by cz.psika.utils.BrowserLauncher

public class BrowserLauncher
extends java.lang.Object

Launching browser made as simple as possible Inspired by "Bare Bones Browser Launch" publicated on http://www.java2s.com/Code/Java/Development-Class/LaunchBrowserinMacLinuxUnix.htm and provided as public domain software Date: December 10, 2005 Version: 1.5

Author:
Tomas Psika

Constructor Summary
BrowserLauncher()
           
 
Method Summary
static boolean launchURL(java.lang.String url)
          Platform dependent behaviour Unix systems (Linux, SunOS and others): Try to find relevant browsers with standard 'which' utility and launch it Browser preference: Firefox, Seamonkey's 'iceweasel', Konqueror, Mozilla, Netscape, Opera, Epiphany, Galeon Windows: Use rundll32 service library to load default client's browser Mac OS: Use reflection to load com.apple.eio.FileManager platform-dependent class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserLauncher

public BrowserLauncher()
Method Detail

launchURL

public static final boolean launchURL(java.lang.String url)
Platform dependent behaviour Unix systems (Linux, SunOS and others): Try to find relevant browsers with standard 'which' utility and launch it Browser preference: Firefox, Seamonkey's 'iceweasel', Konqueror, Mozilla, Netscape, Opera, Epiphany, Galeon Windows: Use rundll32 service library to load default client's browser Mac OS: Use reflection to load com.apple.eio.FileManager platform-dependent class

Parameters:
url - requested internet address
Returns:
false on any error