Package com.teamdev.jxbrowser.engine
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
-
Method Details
-
deliverTo
Delivers Chromium binaries to thechromiumDir
.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. UseVersionInfo
to detect the version of JxBrowser.
-