Examples of VuzeFile


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

    }
 
    if ( engine != null ){
 
      try{
        VuzeFile vf = engine.exportToVuzeFile( true );
       
        byte[] bytes = vf.exportToBytes();
                       
        String url_str = "vuze://?body=" + new String( bytes, Constants.BYTE_ENCODING );
               
        SubscriptionManager sub_man = SubscriptionManagerFactory.getSingleton();
   
        Subscription subs =
          sub_man.createSingletonRSS(
            vf.getName() + ": " + engine.getName() + " (v" + engine.getVersion() + ")",
            new URL( url_str ),
            Integer.MAX_VALUE );
     
        subs.setSubscribed( true );
     
View Full Code Here

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

 
  public Engine[]
  loadFromVuzeFile(
    File    file )
  {
    VuzeFile vf = VuzeFileHandler.getSingleton().loadVuzeFile( file.getAbsolutePath());
   
    if ( vf != null ){
     
      return( loadFromVuzeFile( vf ));
    }
View Full Code Here

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

    public static void
    main(
      String[]  args )
    {
      try{
      VuzeFile  vf = VuzeFileHandler.getSingleton().create();
     
      Map contents = new HashMap();
     
      contents.put( "type", new Long( 1 ));
      contents.put( "term", "donkey" );
     
      vf.addComponent(
        VuzeFileComponent.COMP_TYPE_METASEARCH_OPERATION,
        contents);
     
      vf.write( new File( "C:\\temp\\search.vuze" ));
     
      }catch( Throwable e ){
       
        e.printStackTrace();
      }
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

  exportVuzeFile(
    DeviceImpl    device )
 
    throws IOException
  {
    VuzeFile  vf = VuzeFileHandler.getSingleton().create();
   
    Map  map = new HashMap();
   
    Map device_map = new HashMap();
   
    map.put( "device", device_map );
   
    device.exportToBEncodedMap( device_map );
   
    vf.addComponent( VuzeFileComponent.COMP_TYPE_DEVICE, map );
   
    return( vf );
  }
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

     
      contents.put( "name", cust.getName());
      contents.put( "version", cust.getVersion());
      contents.put( "data", data );
     
      VuzeFile  vf = VuzeFileHandler.getSingleton().create();
     
      vf.addComponent(
        VuzeFileComponent.COMP_TYPE_CUSTOMIZATION,
        contents);
     
      vf.write( to_file );
     
    }catch( Throwable e ){
     
      throw( new CustomizationException( "Failed to export customization", e ));
    }
View Full Code Here

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

  exportToVuzeFile(
    File  target )
 
    throws IOException
  {
    VuzeFile  vf = VuzeFileHandler.getSingleton().create();
   
    vf.addComponent(
      VuzeFileComponent.COMP_TYPE_METASEARCH_TEMPLATE,
      exportToBencodedMap());
   
    vf.write( target );
  }
View Full Code Here

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

  exportToVuzeFile(
    boolean    generic )
 
    throws IOException
  {
    VuzeFile  vf = VuzeFileHandler.getSingleton().create();
   
    vf.addComponent(
      VuzeFileComponent.COMP_TYPE_METASEARCH_TEMPLATE,
      exportToBencodedMap( generic ));
   
    return( vf );
  }
View Full Code Here

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

         
          return( true );
         
        }else{
         
          VuzeFile vf = VuzeFileHandler.getSingleton().loadVuzeFile( map );
         
          if ( vf == null ){
           
            log( "    failed to decode vuze file" );
           
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.