public static Properties readProperties(InputStream in,Properties defaults) throws IOException {
  Properties result=new Properties(defaults);
  try {
    result.load(in);
  }
  finally {
    in.close();
  }
  return result;
}

public static Properties readProperties ( InputStream in , Properties defaults ) throws IOException { Properties result = new Properties ( defaults ) ; try { result . load ( in ) ; } finally { in . close ( ) ; } return result ; }
read properties from the specified inputstream .
