67,550
社区成员




private static Map<String,String> readProperties(File file) throws IOException {
Properties pps = new Properties();
InputStream in = new BufferedInputStream(new FileInputStream(file));
pps.load(new InputStreamReader(in, "UTF-8"));
Enumeration en = pps.propertyNames();
Map<String,String> nodes = new HashMap<>();
while(en.hasMoreElements()) {
String key = (String) en.nextElement();
String value = pps.getProperty(key);
nodes.put(key,value);
}
return nodes;
}