Package edu.umd.cs.findbugs.util
Class LaunchBrowser
- java.lang.Object
-
- edu.umd.cs.findbugs.util.LaunchBrowser
-
public class LaunchBrowser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
launchFirefox
-
Constructor Summary
Constructors Constructor Description LaunchBrowser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
desktopFeasible()
static java.lang.Process
launchFirefox(java.net.URL url)
static boolean
showDocument(java.net.URL url)
attempt to show the given URL.static boolean
showDocumentViaDesktop(java.net.URL u)
static boolean
showDocumentViaExec(java.net.URL url)
static boolean
showViaWebStart(java.net.URL url)
static void
viaDesktop(java.net.URI u)
static java.lang.Boolean
viaWebStart(java.net.URL url)
static boolean
webstartFeasible()
-
-
-
Method Detail
-
desktopFeasible
public static boolean desktopFeasible()
-
webstartFeasible
public static boolean webstartFeasible()
-
showDocumentViaDesktop
public static boolean showDocumentViaDesktop(java.net.URL u)
-
viaDesktop
public static void viaDesktop(java.net.URI u) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.net.URISyntaxException
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.net.URISyntaxException
-
viaWebStart
public static java.lang.Boolean viaWebStart(java.net.URL url) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
showViaWebStart
public static boolean showViaWebStart(java.net.URL url)
-
showDocumentViaExec
public static boolean showDocumentViaExec(java.net.URL url)
-
launchFirefox
public static java.lang.Process launchFirefox(java.net.URL url) throws java.io.IOException
- Throws:
java.io.IOException
-
showDocument
public static boolean showDocument(java.net.URL url)
attempt to show the given URL. will first attempt via the JNLP api, then will try showViaExec().- Parameters:
url
- the URL- Returns:
- true on success
-
-