Java Properties Get getProperty(Properties props, String prefix, String key)

Here you can find the source of getProperty(Properties props, String prefix, String key)

Description

get Property

License

Open Source License

Declaration

public static String getProperty(Properties props, String prefix, String key) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static String getProperty(Properties props, String prefix, String key) {
        return props.getProperty((prefix != null) ? prefix + "." + key : key);
    }//from   w  w  w.j av  a2s  . c om

    public static String getProperty(Properties props, String prefix, String key, String defaultVal) {
        return props.getProperty((prefix != null) ? prefix + "." + key : key, defaultVal);
    }
}

Related

  1. getProp(Properties props, String name)
  2. getPropertiesForBloomFilter( int requiredFieldsSize, int matchKeySize)
  3. getPropertiesWithPrefix(Properties pro, String prefix)
  4. getProperty(Properties properties, String context, String key, String def)
  5. getProperty(Properties props, String keyword)
  6. getProperty(Properties props, String propertyName)
  7. getProperty(Properties props, String propname)
  8. getProperty(String[] system_props, Properties props, String prop_name, boolean ignore_sysprops, String default_value)
  9. getPropertyDouble(Properties p, String key)