Examples of download()


Examples of com.threerings.getdown.net.Downloader.download()

            protected int _lastCheck = -1;
        };

        // start the download and wait for it to complete
        Downloader dl = new HTTPDownloader(resources, obs);
        if (!dl.download()) {
            if (Thread.interrupted()) {
                throw new InterruptedException("m.applet_stopped");
            }
            throw new MultipleGetdownRunning();
        }
View Full Code Here

Examples of com.threerings.getdown.net.HTTPDownloader.download()

            protected int _lastCheck = -1;
        };

        // start the download and wait for it to complete
        Downloader dl = new HTTPDownloader(resources, obs);
        if (!dl.download()) {
            if (Thread.interrupted()) {
                throw new InterruptedException("m.applet_stopped");
            }
            throw new MultipleGetdownRunning();
        }
View Full Code Here

Examples of cu.ftpd.user.statistics.StatisticsEntry.download()

        }
    }

    public void download(String username, String section, long bytes, long time) {
        StatisticsEntry us = getUserStatistics(username, section);
        us.download(bytes, time);
        store(us);

        if (!"default".equals(section)) {
            // always add the data to the default section as well, since that keeps track of ALL the statistics
            us = getUserStatistics(username, "default");
View Full Code Here

Examples of edu.stanford.bmir.protege.web.client.download.ProjectRevisionDownloader.download()

    }

    @Override
    public void handleDownloadRevisionRequest(RevisionNumber revisionNumber) {
        ProjectRevisionDownloader downloader = new ProjectRevisionDownloader(projectId, revisionNumber, DownloadFormatExtension.owl);
        downloader.download();
    }
}
View Full Code Here

Examples of fr.jayasoft.ivy.Ivy.download()

      new DefaultModuleDescriptor(revId, "integration", new Date());   
    Artifact artifact =
      new MDArtifact(md, module, type, type);
   
    ArtifactDownloadReport report =
      ivy.download(artifact, null);
   
    DownloadStatus status = report.getDownloadStatus();
    if (status == DownloadStatus.FAILED) {
      throw new BuildException("Could not resolve resource.");
    }
View Full Code Here

Examples of hudson.model.FullDuplexHttpChannel.download()

                    channel.setProperty(CLICommand.TRANSPORT_AUTHENTICATION,getAuthentication());
                    channel.setProperty(CliEntryPoint.class.getName(),new CliManagerImpl(channel));
                }
            });
            try {
                server.download(req,rsp);
            } finally {
                duplexChannels.remove(uuid);
            }
        } else {
            duplexChannels.get(uuid).upload(req,rsp);
View Full Code Here

Examples of io.fabric8.agent.DeploymentBuilder.download()

        Map<URI, Repository> repositories = new HashMap<URI, Repository>();
        AgentUtils.addRepository(manager, repositories, URI.create("mvn:org.apache.karaf.assemblies.features/standard/" + System.getProperty("karaf-version") + "/xml/features"));

        DeploymentBuilder builder = new DeploymentBuilder(manager, null, repositories.values(), 0);

        builder.download(new HashSet<String>(Arrays.asList("karaf-framework", "ssh")),
                         Collections.<String>emptySet(),
                         Collections.<String>emptySet(),
                         Collections.<String>emptySet(),
                         Collections.<String>emptySet(),
                         Collections.<String>emptySet(),
View Full Code Here

Examples of io.fabric8.agent.download.DownloadManager.download()

            if (container != null) {
                final DownloadManager downloadManager = DownloadManagers.createDownloadManager(fabricService, downloadExecutor);
                return new DownloadStrategy() {
                    @Override
                    public File downloadContent(URL sourceUrl, File installDir) throws IOException {
                        DownloadFuture future = downloadManager.download(sourceUrl.toString());
                        File file = AgentUtils.waitForFileDownload(future);
                        if (file != null && file.exists() && file.isFile()) {
                            // now lest copy it to the install dir
                            File newFile = new File(installDir, file.getName());
                            Files.copy(file, newFile);
View Full Code Here

Examples of it.sauronsoftware.ftp4j.FTPClient.download()

            try {
                client.changeDirectory("/");
                if (StringUtils.hasText(_workingFolder)) {
                    client.changeDirectory(_workingFolder);
                }
                client.download(_fileName, temp);
            } catch (FTPException ex) {
                // file doe not exists, file not found
                if (ex.getCode() != 450
                        && ex.getCode() != 550) {
                    throw ex;
View Full Code Here

Examples of net.chrislongo.hls.PlaylistDownloader.download()

        File outDir = new File("out");
        if(!outDir.exists())
            outDir.mkdir();

        PlaylistDownloader downloader = new PlaylistDownloader("file:./data/prog_index.m3u8");
        downloader.download("out/out.ts");
    }
}
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.