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);
}