Interface BinariesDelivery


public interface BinariesDelivery
Delivers Chromium binaries to the specific directory.

This class is responsible for locating and obtaining of the binaries. If the binaries are distributed in a compressed form, it must decompress them and perform any other necessary post-processing.

For example (pseudocode):


     class SharedDriveDelivery implements BinariesDelivery {

        void deliverTo(Path chromiumDir) {
            Path downloadedArchive = SharedNetworkDrive.download("jxbrowser-win64.gz");
            Gzip.extract(downloadedArchive, chromiumDir);
        }
     }
     ...
     ChromiumBinaries.deliverTo(chromiumDir, new SharedDriveDelivery());
 
Since:
7.35
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deliverTo(Path chromiumDir)
    Delivers Chromium binaries to the chromiumDir.
  • Method Details

    • deliverTo

      void deliverTo(Path chromiumDir)
      Delivers Chromium binaries to the chromiumDir.

      Exceptions thrown by this method will be wrapped into ChromiumBinariesDeliveryException and propagated further.

      Parameters:
      chromiumDir - the directory for the binaries
      Implementation Note:
      Use utility methods in Environment to detect the current platform. Use VersionInfo to detect the version of JxBrowser.