Class UriUtilities


public final class UriUtilities
Utility class for URI-related operations.
  • Method Details

    • openWebpage

      public static boolean openWebpage(URI uri)
      Opens a webpage in the default browser.
      Parameters:
      uri - the URI of the webpage to open
      Returns:
      true if the webpage was successfully opened, false otherwise
    • openWebpage

      public static boolean openWebpage(URL url)
      Opens a webpage in the default browser.
      Parameters:
      url - the URL of the webpage to open
      Returns:
      true if the webpage was successfully opened, false otherwise