當前位置: 首頁>>代碼示例>>Java>>正文


Java DownloadServiceListener類代碼示例

本文整理匯總了Java中javax.jnlp.DownloadServiceListener的典型用法代碼示例。如果您正苦於以下問題:Java DownloadServiceListener類的具體用法?Java DownloadServiceListener怎麽用?Java DownloadServiceListener使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DownloadServiceListener類屬於javax.jnlp包,在下文中一共展示了DownloadServiceListener類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: loadExtensionPart

import javax.jnlp.DownloadServiceListener; //導入依賴的package包/類
@Override
public void loadExtensionPart (URL                     url,
                               String                  string,
                               String                  string1,
                               DownloadServiceListener dl)
    throws IOException
{
    logger.debug(
        "loadExtensionPart url: {}, string: {}, string1: {}, dl: {}",
        url,
        string,
        string1,
        dl);

    if (service != null) {
        service.loadExtensionPart(url, string, string1, dl);
    }
}
 
開發者ID:jlpoolen,項目名稱:libreveris,代碼行數:19,代碼來源:Jnlp.java

示例2: loadResource

import javax.jnlp.DownloadServiceListener; //導入依賴的package包/類
@Override
public void loadResource (URL                     url,
                          String                  string,
                          DownloadServiceListener dl)
    throws IOException
{
    logger.debug(
        "loadResource url: {}, string: {}, dl: {}",
        url,
        string,
        dl);

    if (service != null) {
        service.loadResource(url, string, dl);
    }
}
 
開發者ID:jlpoolen,項目名稱:libreveris,代碼行數:17,代碼來源:Jnlp.java

示例3: downloadInstallerComponent

import javax.jnlp.DownloadServiceListener; //導入依賴的package包/類
/** Download data component JAR */
static public boolean downloadInstallerComponent() {
    DownloadService downloadService = Config.getDownloadService();
    DownloadServiceListener listener = downloadService.getDefaultProgressWindow();
    String compName = Config.getInstallerLocation();
    String compVer = Config.getInstallerVersion();
    try {
        URL codebase = Config.getBasicService().getCodeBase();
        URL url = new URL(codebase, compName);
        String urlstr = url.toString();

        if (!downloadService.isResourceCached(url, compVer)) {
            // The installFailed string is only for debugging. No localization needed
            Config.trace("Downloading: " + urlstr);
            // Do download
            downloadService.loadResource(url,  compVer, listener);
        }
    } catch(IOException ioe) {
        Config.trace("Unable to download: " + compName + "/" + compVer);
        return false;
    }
    return true;
}
 
開發者ID:WhiteBearSolutions,項目名稱:WBSAirback,代碼行數:24,代碼來源:Main.java

示例4: getDefaultProgressWindow

import javax.jnlp.DownloadServiceListener; //導入依賴的package包/類
@Override
public DownloadServiceListener getDefaultProgressWindow ()
{
    DownloadServiceListener res = null;

    if (service != null) {
        res = service.getDefaultProgressWindow();
    }

    logger.debug("getDefaultProgressWindow => {}", res);

    return res;
}
 
開發者ID:jlpoolen,項目名稱:libreveris,代碼行數:14,代碼來源:Jnlp.java

示例5: loadPart

import javax.jnlp.DownloadServiceListener; //導入依賴的package包/類
@Override
public void loadPart (String                  string,
                      DownloadServiceListener dl)
    throws IOException
{
    logger.debug("loadPart string: {}, dl: {}", string, dl);

    if (service != null) {
        service.loadPart(string, dl);
    }
}
 
開發者ID:jlpoolen,項目名稱:libreveris,代碼行數:12,代碼來源:Jnlp.java


注:本文中的javax.jnlp.DownloadServiceListener類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。