Here you can find the source of loadProperties(final Properties properies, final InputStream inputStream)
public static Properties loadProperties(final Properties properies, final InputStream inputStream) throws UnsupportedEncodingException, IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.Properties; public class Main { public static Properties loadProperties(final Properties properies, final InputStream inputStream) throws UnsupportedEncodingException, IOException { try {/*w w w . j a v a 2s . co m*/ properies.load(inputStream); return properies; } finally { inputStream.close(); } } }