All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jpedal.utils.BrowserLauncher Maven / Gradle / Ivy

There is a newer version: 7.15.25
Show newest version
/*
 * ===========================================
 * Java Pdf Extraction Decoding Access Library
 * ===========================================
 *
 * Project Info:  http://www.idrsolutions.com
 * Help section for developers at http://www.idrsolutions.com/support/
 *
 * (C) Copyright 1997-2017 IDRsolutions and Contributors.
 *
 * This file is part of JPedal/JPDF2HTML5
 *
 @LICENSE@
 *
 * ---------------
 * BrowserLauncher.java
 * ---------------
 */
package org.jpedal.utils;

import java.net.URI;


/**
 * Browser Launcer is a Class with one method,
 * pass in the URL string that you want to open in
 * the systems default browser window.
 */
public class BrowserLauncher {

    /*
     * method to be able to open urls in browsers.
     */
    public static void openURL(final String url) throws Exception {
        java.awt.Desktop.getDesktop().browse(new URI(url));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy