Here you can find the source of loadProperties(InputStream input)
private static Properties loadProperties(InputStream input)
//package com.java2s; import java.io.InputStream; import java.io.InputStreamReader; import java.util.Properties; public class Main { private static Properties loadProperties(InputStream input) { InputStreamReader reader; Properties props = new Properties(); try {/* ww w .j a v a2 s . c o m*/ reader = new InputStreamReader(input, "utf8"); props.load(reader); } catch (Exception e) { e.printStackTrace(); return null; } return props; } }