Here you can find the source of getResource(String propertiesPath)
private static InputStream getResource(String propertiesPath) throws Exception
//package com.java2s; //License from project: Apache License import java.io.File; import java.io.FileInputStream; import java.io.InputStream; public class Main { private static InputStream getResource(String propertiesPath) throws Exception { return new FileInputStream(new File(propertiesPath)); }// w w w . j a v a 2s .co m }