Examples of download()


Examples of com.firefun.util.FileUtil.download()

        FileUtil util = new FileUtil();
        //System.out.println("%%%%%%%%%%"+util.uploadmodel);
        try
        {
          if(util.uploadmodel.equals("2")){
            util.download(downid, path);
          }
            // Initialization
            mySmartUpload.initialize(config,request,response);
           
            mySmartUpload.setContentDisposition(null);
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.WebClient.download()

        final WebRequestSettings settings = getWebRequestSettings(submitElement);
        final String target = htmlPage.getResolvedTarget(getTargetAttribute());

        final WebWindow webWindow = htmlPage.getEnclosingWindow();
        webClient.download(webWindow, target, settings, "JS form.submit()");
        return htmlPage;
    }

    /**
     * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
View Full Code Here

Examples of com.github.axet.wget.Direct.download()

                    } else {
                        // single download? overwrite file
                        direct = new DirectSingle(dinfo, targetFile);
                    }

                    direct.download(stop, new Runnable() {
                        @Override
                        public void run() {
                            switch (dinfo.getState()) {
                            case DOWNLOADING:
                                info.setState(States.DOWNLOADING);
View Full Code Here

Examples of com.google.api.client.googleapis.media.MediaHttpDownloader.download()

    OutputStream outputStream = new XThreadOutputStream(inputStream);
    try {
      MediaHttpDownloader downloader =
          new MediaHttpDownloader(HTTP_TRANSPORT, drive.getRequestFactory().getInitializer());
      downloader.setDirectDownloadEnabled(false);
      downloader.download(new GenericUrl(documentURI), outputStream);
    } finally {
      // Make sure it is closed and flushed
      outputStream.close();
    }
  }
View Full Code Here

Examples of com.google.api.client.http.HttpResponse.download()

   * @throws IOException I/O exception
   * @since 1.9
   */
  public void download(OutputStream outputStream) throws IOException {
    HttpResponse response = executeUnparsed();
    response.download(outputStream);
  }
}
View Full Code Here

Examples of com.googlecode.flaxcrawler.download.DefaultDownloader.download()

        DefaultDownloader downloader = new DefaultDownloader();
        downloader.setProxyController(proxyController);
        downloader.setTriesCount(3);

        Page page = downloader.download(new URL("http://vipzone.ws"));
        assertNotNull(page);

        DefaultParser parser = new DefaultParser();
        parser.parse(page);
View Full Code Here

Examples of com.googlecode.flaxcrawler.download.Downloader.download()

        log.debug("Downloading from " + url + "...");

        Page page = null;

        try {
            page = downloader.download(url);

            if (page != null) {
                crawlerTask.setTimeDownloaded(new Date());

                if (page.getResponseCode() == HttpURLConnection.HTTP_OK) {
View Full Code Here

Examples of com.googlecode.flaxcrawler.download.LoginDownloader.download()

        downloader.setLoginUrl("http://qiq.ru/?action=login");
        downloader.setPostData("login=lex9889&pass=qweasdzxc");
        downloader.setProxyController(proxyController);
        downloader.setTriesCount(3);

        Page page = downloader.download(new URL("http://qiq.ru/"));
        assertNotNull(page);

        System.out.println("Response time: " + page.getResponseTime());
        System.out.println("Content length: " + page.getContent().length);
        System.out.println("Response code: " + page.getResponseCode());
View Full Code Here

Examples of com.puppetlabs.geppetto.forge.v2.service.ReleaseService.download()

public class ReleaseTests extends ForgeAPITestBase {
  @Test
  public void testDownloadRelease() throws IOException {
    ReleaseService service = getTestUserForge().createReleaseService();
    ByteArrayOutputStream content = new ByteArrayOutputStream();
    service.download(TEST_USER, TEST_MODULE, TEST_RELEASE_VERSION, content);
    assertEquals(
      "Wrong release content size", content.size(), TestDataProvider.getTestData(TEST_GZIPPED_RELEASE).length);
  }

  /* Disabled since it's not really used and puts a hard strain on the server
View Full Code Here

Examples of com.salas.bb.utils.net.Downloader.download()

            {
                Location location = locations[i];
                try
                {
                    URL locationURL = new URL(location.getLink());
                    downloader.download(locationURL, targetDirectory);
                    successful.add(location);
                } catch (IOException e)
                {
                    LOG.log(Level.SEVERE, MessageFormat.format(
                        Strings.error("invalid.url"),
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.