edu.umd.cs.findbugs.util
Class LaunchBrowser
java.lang.Object
edu.umd.cs.findbugs.util.LaunchBrowser
public class LaunchBrowser
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
launchFirefox
public static final boolean launchFirefox
LaunchBrowser
public LaunchBrowser()
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
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.