Package org.gudy.azureus2.plugins.torrent

Examples of org.gudy.azureus2.plugins.torrent.TorrentDownloader.download()


     
      try{
        TorrentDownloader dl =
          plugin_interface.getTorrentManager().getURLDownloader( torrent_url, null, null );
       
        torrent = dl.download( Constants.DEFAULT_ENCODING );
       
      }catch( Throwable e ){

        e.printStackTrace();
       
View Full Code Here


            // no old dl, download sync now
            Logger.log(new LogEvent(LOGID, "sync Downloading " + file));
            try {
              ResourceDownloader rd = ResourceDownloaderFactoryImpl.getSingleton().create(
                  new URL(file));
              fin = rd.download();
              FileUtil.copyFile(fin, filtersFile);
              setNextAutoDownload(true);
            } catch (ResourceDownloaderException e) {
              return;
            }
View Full Code Here

    //      public boolean completed(ResourceDownloader downloader, InputStream data) {
    //        return true;
    //      }
    //    });

    InputStream is = rd.download();

    byte data[];

    try {
      int length = is.available();
View Full Code Here

       
        if ( protocol.equals( "http" ) || protocol.equals( "https" )){
         
          ResourceDownloader rd = StaticUtilities.getResourceDownloaderFactory().create( url );
       
          return( getVuzeFile(rd.download()));
        }
      }
    }catch( Throwable e ){
    }
   
View Full Code Here

       
        mr_rd = rdf.getMetaRefreshDownloader( initial_url_rd );

        try{
       
          is = mr_rd.download();
         
        }catch( ResourceDownloaderException e ){
       
          Long  response = (Long)mr_rd.getProperty( "URL_HTTP_Response" );
         
View Full Code Here

        InputStream is=null;
        Map reply = new HashMap();
        try
        {
            is = rd.download();
            reply = BDecoder.decode( new BufferedInputStream(is) );

            //all replys of this type contains a "result"
            Long res = (Long) reply.get("result");
            if(res==null)
View Full Code Here

                    }
                  }
                 
                  ResourceDownloader mr_rd = rdf.getMetaRefreshDownloader( url_rd );
   
                  InputStream is = mr_rd.download();
   
                  Torrent torrent = new TorrentImpl( TOTorrentFactory.deserialiseFromBEncodedInputStream( is ));
                           
                  // PlatformTorrentUtils.setContentTitle(torrent, torr );
             
View Full Code Here

     
      ResourceDownloader url_rd = rdf.create( new URL( update_url ));
     
      ResourceDownloader rd = rdf.getMetaRefreshDownloader( url_rd );
     
      InputStream is = rd.download();
     
      try{
        Map<String,Object> map = BDecoder.decode( new BufferedInputStream( is ));
       
        log( "    update check reply: " + map );
View Full Code Here

    ResourceDownloaderFactory rdf = ResourceDownloaderFactoryImpl.getSingleton();
   
    try{
      ResourceDownloader rd = rdf.create( new URL( url_str ));
   
      InputStream  is = rd.download();
     
      try{   
        TOTorrent  torrent = TOTorrentFactory.deserialiseFromBEncodedInputStream( is );
     
        return( new AzureusPlatformContent( new TorrentImpl( torrent )));
View Full Code Here

        String s;
        ResourceDownloaderFactory rdf = ResourceDownloaderFactoryImpl.getSingleton();
        try {
          ResourceDownloader rd = rdf.create(new URL(url));
          InputStream is = rd.download();
          int length = is.available();
          byte data[] = new byte[length];
          is.read(data);
          is.close();
          s = new String(data);
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.