public interface BinariesDelivery
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());
| Modifier and Type | Method and Description |
|---|---|
void |
deliverTo(java.nio.file.Path chromiumDir)
Delivers Chromium binaries to the
chromiumDir. |
void deliverTo(java.nio.file.Path chromiumDir)
chromiumDir.
Exceptions thrown by this method will be wrapped into
ChromiumBinariesDeliveryException and propagated further.
chromiumDir - the directory for the binariesEnvironment to detect the current
platform. Use VersionInfo to detect the version of JxBrowser.