Java Properties Get getSignatureContent(Properties properties)

Here you can find the source of getSignatureContent(Properties properties)

Description

get Signature Content

License

Apache License

Declaration

public static String getSignatureContent(Properties properties) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    public static String getSignatureContent(Properties properties) {
        StringBuffer content = new StringBuffer();
        List keys = new ArrayList(properties.keySet());
        Collections.sort(keys);//from   www .  java  2 s.c o  m
        for (int i = 0; i < keys.size(); i++) {
            String key = (String) keys.get(i);
            String value = properties.getProperty(key);
            content.append(String.valueOf(i != 0 ? "&" : "") + key + "=" + value);
        }

        return content.toString();
    }
}

Related

  1. getPropertyText(String property, Object... replacements)
  2. getPropertyValue(Properties props, String key)
  3. getPropertyValueAsInt(Properties props, String key, int defaultValue)
  4. getRefValue(Properties result, String v)
  5. getSection(Properties props, String sectionName, boolean removeSectionName)
  6. getSignExclusions(Properties properties)
  7. getString(Properties props, String key)
  8. getString(Properties props, String name)
  9. getString(Properties props, String name, String defaultValue)