Examples of VuzeFile


Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

 
    throws MetaSearchException
  {
    Engine[] engines = getEngines( true, false );
   
    VuzeFile  vf = VuzeFileHandler.getSingleton().create();
   
    for ( Engine engine: engines ){
   
      try{
        vf.addComponent(
          VuzeFileComponent.COMP_TYPE_METASEARCH_TEMPLATE,
          engine.exportToBencodedMap());
       
      }catch( IOException e ){
       
        Debug.out( e );
      }
     
    }
   
    try{
      vf.write( target );
     
    }catch( IOException e ){
     
      throw( new MetaSearchException( "Failed to write file", e ));
    }
View Full Code Here

Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

          VuzeFile[]    files,
          int        expected_types )
        {
          for (int i=0;i<files.length;i++){
           
            VuzeFile  vf = files[i];
           
            VuzeFileComponent[] comps = vf.getComponents();
           
            for (int j=0;j<comps.length;j++){
             
              VuzeFileComponent comp = comps[j];
             
View Full Code Here

Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

          for (int i=0;i<streams.length;i++){
           
            InputStream is = streams[i];
           
            try{
              VuzeFile vf = VuzeFileHandler.getSingleton().loadVuzeFile(is);
             
              if ( vf != null ){
               
                VuzeFileComponent[] comps = vf.getComponents();
               
                for (int j=0;j<comps.length;j++){
                 
                  VuzeFileComponent comp = comps[j];
                 
View Full Code Here

Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

  }
 
  public VuzeFile
  getVuzeFile()
  {
    VuzeFile  vf = VuzeFileHandler.getSingleton().create();
   
    Map  map = new HashMap();
   
    try{
      exportToBEncodedMap( map );
   
      vf.addComponent( VuzeFileComponent.COMP_TYPE_CONTENT_NETWORK, map );
     
    }catch( Throwable e ){
     
      Debug.printStackTrace( e );
    }
View Full Code Here

Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

             
              path += ".vuze";
            }
           
            try{
              VuzeFile vf = subs.getVuzeFile();
             
              vf.write( new File( path ));
             

            }catch( Throwable e ){
             
              Debug.out( e );
View Full Code Here

Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

          // hack alert - we embed the vuze-file into a torrent to allow it to go through
          // the normal share route, then pick it out again when the recipient 'downloads' it
       
        try{
       
          VuzeFile vf = subs.getVuzeFile();
       
            // if not corrupt....
         
          if ( vf != null ){
           
            File f1 = AETemporaryFileHandler.createTempFile();
           
            File f = new File( f1.getParent(), "Update Vuze to access this share_" + f1.getName());
           
            f1.delete();
           
            try{
           
              vf.write( f );
           
              TOTorrentCreator cr = TOTorrentFactory.createFromFileOrDirWithComputedPieceLength( f, new URL( "dht://" ));
             
              TOTorrent temp = cr.create();
             
              Map  vuze_map   = vf.exportToMap();
              Map  torrent_map = temp.serialiseToMap();
             
              torrent_map.putAll( vuze_map );
             
              torrent = TOTorrentFactory.deserialiseFromMap( torrent_map );
View Full Code Here

Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

               
                ResourceDownloader rd = StaticUtilities.getResourceDownloaderFactory().create( new URL( event_location ));
               
                VuzeFileHandler vfh = VuzeFileHandler.getSingleton();
               
                VuzeFile vf = vfh.loadVuzeFile( rd.download());
               
                if ( vf == null ){
                 
                  event.doit = true;
                  setPageLoading(true, event.location);
View Full Code Here

Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

       
        byte[] bytes = Base32.decode( content );
       
        VuzeFileHandler vfh = VuzeFileHandler.getSingleton();
       
        VuzeFile vf = vfh.loadVuzeFile( bytes );
       
        if ( vf == null ){
         
          throw new IllegalArgumentException( "content invalid" );
         
View Full Code Here

Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

    try{
      Map torrent_map = torrent.serialiseToMap();
     
      torrent_map.remove( "info" );
     
      VuzeFile vf = VuzeFileHandler.getSingleton().loadVuzeFile( torrent_map );
   
      if ( vf != null ){
       
        VuzeFileHandler.getSingleton().handleFiles( new VuzeFile[]{ vf }, VuzeFileComponent.COMP_TYPE_NONE );
       
View Full Code Here

Examples of com.aelitis.azureus.core.vuzefile.VuzeFile

          VuzeFile[]    files,
          int        expected_types )
        {
          for (int i=0;i<files.length;i++){
           
            VuzeFile  vf = files[i];
           
            VuzeFileComponent[] comps = vf.getComponents();
           
            for (int j=0;j<comps.length;j++){
             
              VuzeFileComponent comp = comps[j];
               
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.