public static EntryRep[] toEntryRep(Entry[] entries,boolean needCodebase) throws RemoteException {
  EntryRep[] reps=null;
  if (entries != null) {
    reps=new EntryRep[entries.length];
    for (int i=entries.length; --i >= 0; ) {
      if (entries[i] != null) {
        reps[i]=new EntryRep(entries[i]);
        if (!needCodebase)         reps[i].codebase=null;
      }
    }
  }
  return reps;
}

public static EntryRep [ ] toEntryRep ( Entry [ ] entries , boolean needCodebase ) throws RemoteException { EntryRep [ ] reps = null ; if ( entries != null ) { reps = new EntryRep [ entries . length ] ; for ( int i = entries . length ; -- i >= 0 ; ) { if ( entries [ i ] != null ) { reps [ i ] = new EntryRep ( entries [ i ] ) ; if ( ! needCodebase ) reps [ i ] . codebase = null ; } } } return reps ; }
converts an array of entry to an array of entryrep . if needcodebase is false , then the codebase of every entryrep will be null .
