Package java.util

Examples of java.util.Properties.keySet()


        + "Explorer.props";
      BufferedInputStream bi = new BufferedInputStream(new FileInputStream(explorerProps));
      expProps.load(bi);
      bi.close();
      bi = null;
      Set keys = expProps.keySet();
      Iterator keysI = keys.iterator();
      while (keysI.hasNext()) {
        String key = (String)keysI.next();
        if (!key.endsWith("Policy")) {
          // See if this key is in the Explorer props
View Full Code Here


      Properties expProps = new Properties();
      BufferedInputStream bi = new BufferedInputStream(new FileInputStream(propsFile));
      expProps.load(bi);
      bi.close();
      bi = null;
      Set keys = expProps.keySet();
      Iterator keysI = keys.iterator();
      while (keysI.hasNext()) {
        String key = (String)keysI.next();
        if (!key.endsWith("Policy")) {
          // See if this key is in the Explorer props
View Full Code Here

            if (stream == null) {
                throw new RuntimeException("Unable to load required properties file '" + path + '\'');
            }
            props.load(stream);

            for (Iterator iter = props.keySet().iterator(); iter.hasNext();) {
                String name = (String) iter.next();
                String objectName = props.getProperty(name);
                Protocol inst = loadProtocol(objectName);
                s_protocolMap.put(name, inst);
            }
View Full Code Here

      bundle.load(is);
      is.close();
    } else {
      throw new IOException("Properties file " + propertiesName + " not available");//$NON-NLS-1$ //$NON-NLS-2$
    }
    log.debug("Loaded properties, users=" + bundle.keySet());//$NON-NLS-1$
    return bundle;
  }
}
View Full Code Here

     */
    public Namespace[] getNamespaces() {
        ArrayList list = new ArrayList();
        Properties props = (Properties)getProperty(MappingNodeConstants.Properties.NAMESPACE_DECLARATIONS);
        if (props != null && !props.isEmpty()) {
            for(Iterator i = props.keySet().iterator(); i.hasNext();) {
                String key = (String)i.next();
                String value = props.getProperty(key);
                list.add(new Namespace(key, value));
            }
        }
View Full Code Here

            if (stream == null) {
                throw new RuntimeException("Unable to load required properties file '" + path + '\'');
            }
            props.load(stream);

            for (Iterator iter = props.keySet().iterator(); iter.hasNext();) {
                String protocol = (String) iter.next();
                String classname = props.getProperty(protocol);
                try {
                    Class clas = TransportDirectory.class.getClassLoader().loadClass(classname);
                    Object inst = clas.newInstance();
View Full Code Here

  public static void insertStyle(HashMap h) {
    String style = (String) h.get("style");
    if (style == null)
      return;
    Properties prop = Markup.parseAttributes(style);
    for (Iterator it = prop.keySet().iterator(); it.hasNext();) {
      String key = (String) it.next();
      if (key.equals(Markup.CSS_KEY_FONTFAMILY)) {
        h.put("face", prop.getProperty(key));
      } else if (key.equals(Markup.CSS_KEY_FONTSIZE)) {
        h.put("size", Float.toString(Markup.parseLength(prop
View Full Code Here

  public static void insertStyle(HashMap h, ChainedProperties cprops) {
    String style = (String) h.get("style");
    if (style == null)
      return;
    Properties prop = Markup.parseAttributes(style);
    for (Iterator it = prop.keySet().iterator(); it.hasNext();) {
      String key = (String) it.next();
      if (key.equals(Markup.CSS_KEY_FONTFAMILY)) {
        h.put(ElementTags.FACE, prop.getProperty(key));
      } else if (key.equals(Markup.CSS_KEY_FONTSIZE)) {
        float actualFontSize = Markup.parseLength(cprops
View Full Code Here

        File projectPropertiesFile = new File(project.getProjectDir(), Project.GRADLE_PROPERTIES);
        LOGGER.debug("Looking for project properties from: {}", projectPropertiesFile);
        if (projectPropertiesFile.isFile()) {
            projectProperties = GUtil.loadProperties(projectPropertiesFile);
            LOGGER.debug("Adding project properties (if not overwritten by user properties): {}",
                    projectProperties.keySet());
        } else {
            LOGGER.debug("project property file does not exists. We continue!");
        }
        projectProperties.putAll(externalProperties);
        for (Object key : projectProperties.keySet()) {
View Full Code Here

                    projectProperties.keySet());
        } else {
            LOGGER.debug("project property file does not exists. We continue!");
        }
        projectProperties.putAll(externalProperties);
        for (Object key : projectProperties.keySet()) {
            project.setProperty((String) key, projectProperties.get(key));
        }
    }
}
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.