Package nl.siegmann.epublib.util
Class DesktopUtil
- java.lang.Object
-
- nl.siegmann.epublib.util.DesktopUtil
-
public class DesktopUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDesktopUtil.BrowserLaunchException
-
Constructor Summary
Constructors Constructor Description DesktopUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanlaunchBrowser(java.net.URL url)Open a URL in the default web browser.
-
-
-
Method Detail
-
launchBrowser
public static boolean launchBrowser(java.net.URL url) throws DesktopUtil.BrowserLaunchExceptionOpen a URL in the default web browser.- Parameters:
url- a URL to open in a web browser.- Returns:
- true if a browser has been launched.
- Throws:
DesktopUtil.BrowserLaunchException
-
-