Java Properties Get getProperty(Properties props, String keyword)

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

Description

get Property

License

Open Source License

Declaration

public static String getProperty(Properties props, String keyword) 

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 keyword) {
        String rv = null;/*from   www .  j a v  a  2 s . c  o  m*/
        if (props != null) {
            rv = props.getProperty(keyword);
        }
        if (rv != null) {
            if (rv.trim().isEmpty()) {
                rv = "";
            }
        } else {
            rv = "";
        }
        return rv;
    }
}

Related

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