Here you can find the source of getFileSystemProperties(String path)
public static Properties getFileSystemProperties(String path)
//package com.java2s; //License from project: Apache License import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.IOException; import java.util.Properties; public class Main { public static Properties getFileSystemProperties(String path) { Properties props = null;//from w w w . j a va2 s .co m try { InputStream is = new BufferedInputStream(new FileInputStream(new File(path))); props = new Properties(); props.load(is); } catch (IOException e) { e.printStackTrace(); } return props; } }