Examples of VuzeFileComponent


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

           
            VuzeFileComponent[] comps = vf.getComponents();
           
            for (int j=0;j<comps.length;j++){
             
              VuzeFileComponent comp = comps[j];
               
              if (   comp.getType() == VuzeFileComponent.COMP_TYPE_V3_NAVIGATION ||
                  comp.getType() == VuzeFileComponent.COMP_TYPE_V3_CONDITION_CHECK ){

                try{

                  List commands = (List)comp.getContent().get("commands");
                 
                  for ( int k=0;k<commands.size();k++){
                   
                    Map  command = (Map)commands.get(k);
                   
                    int  command_type = ((Long)command.get("type")).intValue();
                   
                    List  l_args = (List)command.get( "args" );
                   
                    String[]  args;
                   
                    if ( l_args == null ){
                     
                      args = new String[0];
                     
                    }else{
                   
                      args = new String[l_args.size()];
                     
                      for (int l=0;l<args.length;l++){
                       
                        args[l] = new String((byte[])l_args.get(l), "UTF-8" );
                      }
                    }
                   
                    addCommand( command_type, args );
                  }
                 
                  comp.setProcessed();
             
                }catch( Throwable e ){
                 
                  Debug.printStackTrace(e);
                }
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.