Package java.util

Examples of java.util.Properties.keys()


                if (isXml) {
                    p.loadFromXML(in);
                } else {
                    p.load(in);
                }
                final Enumeration<Object> i = p.keys();
                while ( i.hasMoreElements() ) {
                    final Object key = i.nextElement();
                    ht.put(key.toString(), p.get(key));
                }
            } else {
View Full Code Here


        }

        if (url != null) {
          try {
            appletParams.load(Applet.class.getResourceAsStream("/de/mud/jta/" + value));
            Enumeration ape = appletParams.keys();
            while (ape.hasMoreElements()) {
              String key = (String) ape.nextElement();
              options.put(key, appletParams.getProperty(key));
            }
          } catch (Exception e) {
View Full Code Here

              options.put(key, appletParams.getProperty(key));
            }
          } catch (Exception e) {
            try {
              appletParams.load(url.openStream());
              Enumeration ape = appletParams.keys();
              while (ape.hasMoreElements()) {
                String key = (String) ape.nextElement();
                options.put(key, appletParams.getProperty(key));
              }
            } catch (Exception e2) {
View Full Code Here

            try {
                Properties settingsProps = Util.sourceSGESettings(idata.getVariable(VAR_SGE_ROOT), idata.getVariable(VAR_SGE_CELL_NAME));
               
                String origKey = "";
                String newKey = "";
                for (Enumeration<Object> enumer = settingsProps.keys(); enumer.hasMoreElements();) {
                    origKey = (String) enumer.nextElement();
                    newKey = CONFIG_VAR_PREFIX + "." + origKey.toLowerCase().replace('_', '.');
                    idata.setVariable(newKey, settingsProps.getProperty(origKey));
                }
            } catch (Exception ex) {
View Full Code Here

      Document doc =
        DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
      Element conf = doc.createElement("configuration");
      doc.appendChild(conf);
      conf.appendChild(doc.createTextNode("\n"));
      for (Enumeration e = properties.keys(); e.hasMoreElements();) {
        String name = (String)e.nextElement();
        Object object = properties.get(name);
        String value = null;
        if (object instanceof String) {
          value = (String) object;
View Full Code Here

                hadoopProperties.put(key, val);
            }
           
            //clear user defined properties and re-populate
            properties.clear();
            Enumeration<Object> hodPropertiesIter = hadoopProperties.keys();
            while (hodPropertiesIter.hasMoreElements()) {
                String key = (String) hodPropertiesIter.nextElement();
                String val = hadoopProperties.getProperty(key);
                properties.put(key, val);
            }
View Full Code Here

                    hadoopProperties.put(key, val);
            }
           
            //clear user defined properties and re-populate
            properties.clear();
            Enumeration<Object> hodPropertiesIter = hadoopProperties.keys();
            while (hodPropertiesIter.hasMoreElements()) {
                String key = (String) hodPropertiesIter.nextElement();
                String val = hadoopProperties.getProperty(key);
                properties.put(key, val);
            }
View Full Code Here

  */
  protected void createSPSSet(TransactionController tc, boolean net, UUID schemaID)
    throws StandardException
  {
    Properties p = getQueryDescriptions(net);
    Enumeration e = p.keys();
    //statement will get compiled on first execution
    //Note: Don't change this to FALSE LCC is not available for compiling
    boolean nocompile = true;
   
    while (e.hasMoreElements())
View Full Code Here

  */
  protected void createSPSSet(TransactionController tc, boolean net, UUID schemaID)
    throws StandardException
  {
    Properties p = getQueryDescriptions(net);
    Enumeration e = p.keys();
    //statement will get compiled on first execution
    //Note: Don't change this to FALSE LCC is not available for compiling
    boolean nocompile = true;
   
    while (e.hasMoreElements())
View Full Code Here

            Properties temp = new Properties();
            stream = groupFile.toURL().openStream();
            temp.load(stream);
            stream.close();

            Enumeration e = temp.keys();
            while (e.hasMoreElements()) {
                String groupName = (String) e.nextElement();
                String[] userList = ((String) temp.get(groupName)).split(",");

                Set userset = (Set) groups.get(groupName);
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.