Here you can find the source of load(InputStream in)
public static Properties load(InputStream in)
//package com.java2s; //License from project: Apache License import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class Main { public static Properties load(InputStream in) { Properties p = new Properties(); try {/*from w w w. ja va2 s. c om*/ p.load(in); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return p; } }