Java Properties to String propertiesToString(final Properties properties)

Here you can find the source of propertiesToString(final Properties properties)

Description

properties To String

License

Open Source License

Declaration

public static String propertiesToString(final Properties properties) 

Method Source Code

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

import java.io.PrintWriter;
import java.io.StringWriter;

import java.util.Properties;

public class Main {
    public static String propertiesToString(final Properties properties) {
        final StringWriter sw = new StringWriter();
        final PrintWriter pw = new PrintWriter(sw);
        properties.list(pw);/* w ww .  ja v a 2 s .c om*/
        return sw.toString();
    }
}

Related

  1. propertiesToString(final Properties p)
  2. propertiesToString(Properties p)
  3. propertiesToString(Properties properties)
  4. propertiesToString(Properties properties)
  5. propertiesToString(Properties props)