Examples of Download


Examples of org.spoutcraft.client.io.Download

    } else {
      song = new File(directory, fileName);
    }

    QueuedSound action = new QueuedSound(song, x, y, z, volume, distance, soundEffect);
    Download download = new Download(fileName, directory, url, action);
    action.setNotify(!download.isDownloaded() && notify);
    if (!download.isDownloaded() && notify) {
      SpoutClient.getInstance().getActivePlayer().showAchievement("Downloading Music...", fileName, 2256 /*Gold Record*/);
    }
    FileDownloadThread.getInstance().addToDownloadQueue(download);
  }
 
View Full Code Here

Examples of org.spoutcraft.launcher.async.Download

          }
        } else {
          url = SPLASH_URL;
        }

        Download download = new Download(url, backgroundImage.getPath());
        download.run();

      }
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.spoutcraft.launcher.util.Download

        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      } catch (Exception e) {
      }

      ProgressSplashScreen splash = new ProgressSplashScreen();
      Download download = new Download(RestAPI.getLauncherDownloadURL(Settings.getLauncherChannel(), !codeSource.getName().endsWith(".exe")), temp.getPath());
      download.setListener(new LauncherDownloadListener(splash));
      download.run();

      ProcessBuilder processBuilder = new ProcessBuilder();
      ArrayList<String> commands = new ArrayList<String>();
      if (!codeSource.getName().endsWith(".exe")) {
        if (OperatingSystem.getOS().isWindows()) {
View Full Code Here

Examples of penny.downloadmanager.model.db.Download

            public void run() {
                goButton.setText("Stop");
                download = null;
                try {
                    download = new Download();
                    download.setUrl(new URL(addressBox.getText()));
                    download.addPropertyChangeListener(ConnectionTest.this);
                } catch (MalformedURLException ex) {
                    Logger.getLogger(ConnectionTest.class.getName()).log(Level.SEVERE, null, ex);
                }
View Full Code Here

Examples of sagan.tools.Download

    private Download download;
    private DownloadLinkExtractor extractor;

    @Before
    public void setUp() throws Exception {
        download = new Download();
        download.setDescription("Mac OS X (Cocoa)");
        download.setOs("mac");
        download.setFile("release/STS/3.3.0/dist/e4.3/spring-tool-suite-3.3.0.RELEASE-e4.3-macosx-cocoa-installer.dmg");
        download.setBucket("http://dist.springsource.com/");
        download.setEclipseVersion("4.3");
View Full Code Here

Examples of slash.navigation.download.Download

    private void initializeEdition(String edition) throws JAXBException, FileNotFoundException {
        String uri = edition.toLowerCase() + ".xml";
        String url = System.getProperty("datasources", "http://www.routeconverter.com/datasources/") + "edition/" + uri;
        log.info(format("Downloading edition '%s'", url));

        Download download = downloadManager.queueForDownload("RouteConverter " + edition + " Edition: Catalog of Data Sources",
                url, Copy, null, new FileAndChecksum(new java.io.File(getTarget(), uri), null), null);
        downloadManager.waitForCompletion(asList(download));

        java.io.File target = download.getFile().getFile();
        if (!target.exists()) {
            log.warning(format("Cannot find %s to load '%s' data", target, download.getDescription()));
            return;
        }
        dataSourceService.load(new FileInputStream(download.getFile().getFile()));
    }
View Full Code Here

Examples of uk.co.akademy.Downloader.Download

       
      if( !addByFilename( storeFolder + fileName ) )
      {
        // TODO: Limit numbers of simultaneous downloads.
        // TODO: Check image has finished downloading.
        Download dl = new Download( url, tempFolder, storeFolder );
       
        _downloads.add( dl );
        dl.addObserver(this);
       
        dl.download();
      }
      }

     
    return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.