Package java.util

Examples of java.util.Vector.toArray()


  }

  public String[] getPids() {
    Vector pidsV = new Vector();
    pidsV.addAll(pids.keySet());
    return (String[]) pidsV.toArray(new String[pidsV.size()]);
  }
   
  public void prepare(){
    Enumeration enume = metaDatas.elements();
    while(enume.hasMoreElements()){
View Full Code Here


                        int underscore = fileName.indexOf('_');
                        fileName = fileName.substring(underscore + 1);
                        localesV.add(fileName);
                    }
        } 
        locales = (String[]) localesV.toArray(new String[localesV.size()]);
            }
  }

  private Properties loadLocaleEntries(URL url){
    Properties entries = new Properties();
View Full Code Here

    if (tmp.size() == 0) {
      out.println("ERROR! No matching bundle");
      return 1;
    } else {
      printBundles(out, (Bundle[])tmp.toArray(new Bundle[tmp.size()]), verbose, oneColumn);
      return 0;
    }
  }

  private void printBundles(PrintWriter out, Bundle[] b, boolean verbose, boolean oneColumn) {
View Full Code Here

    pkgClosure.remove(bundle);
    if (pkgClosure.size() == 0) {
      out.println("No package dependencies");
    } else {
      out.println("Static dependencies via packages:");
      Bundle[] bundles = (Bundle[]) pkgClosure.toArray(new Bundle[pkgClosure.size()]);
      printBundles(out, bundles, false, true);
    }

    // Service
View Full Code Here

    serviceClosure.remove(bundle);
    if(serviceClosure.size() == 0) {
      out.println("No service dependencies");
    } else {
      out.println("Runtime dependencies via services:");
      Bundle[] bundles = (Bundle[]) serviceClosure.toArray(new Bundle[serviceClosure.size()]);
      printBundles(out, bundles, false, true);
    }

    // Fragment
View Full Code Here

    }
    if (requiredBy.size() == 0) {
      out.println("No requiring bundles");
    } else {
      out.println("Requiring bundles:");
      Bundle[] bundles = (Bundle[]) requiredBy.toArray(new Bundle[requiredBy.size()]);
      printBundles(out, bundles, false, true);
    }

    return 0;
  }
View Full Code Here

        out.println("ERROR! Expected start char '(' or '[', got: " + cpi);
        return 1;
      }
    }
    ConditionInfo [] cia = (ConditionInfo []) cis.toArray(new ConditionInfo [cis.size()]);
    PermissionInfo [] pia = (PermissionInfo []) pis.toArray(new PermissionInfo [pis.size()]);
    condPermAdmin.setConditionalPermissionInfo(name, cia, pia);
    return 0;
  }

  //
View Full Code Here

          getFolderTableModel().addRows(addedProxies);
          setNewMessages(true);
          resetMessageCounts();

          // notify the message loaded thread.
          MessageProxy[] addedArray = (MessageProxy[]) addedProxies.toArray(new MessageProxy[0]);
          //loaderThread.loadMessages(addedArray, net.suberic.pooka.thread.LoadMessageThread.HIGH);
          mMessageLoader.loadMessages(addedArray, net.suberic.pooka.thread.MessageLoader.HIGH);

          // change the Message objects in the MessageCountEvent to
          // our UIDMimeMessages.
View Full Code Here

            while( stringTokenizer.hasMoreTokens() ) {
                tokenVector.addElement( stringTokenizer.nextToken().trim() );
            }

            String[] values = new String[ tokenVector.size() ];
            return (String[]) tokenVector.toArray( values );
        }
    }

    /**
     * Converts the string into a valid port number.
View Full Code Here

          getFolderTableModel().addRows(addedProxies);
        setNewMessages(true);
        resetMessageCounts();

        // notify the message loaded thread.
        MessageProxy[] addedArray = (MessageProxy[]) addedProxies.toArray(new MessageProxy[0]);
        //loaderThread.loadMessages(addedArray, net.suberic.pooka.thread.LoadMessageThread.HIGH);
        mMessageLoader.loadMessages(addedArray, net.suberic.pooka.thread.MessageLoader.HIGH);

        if (autoCache) {
          mMessageLoader.cacheMessages(addedArray);
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.