public class Content(){
private String getContentRootName()
{
String fileName =Content.class.getResource("/").getPath()
+ "template/content.properties";
fileName = fileName.substring(1);
Properties prop = new Properties();
try {
InputStream is = new BufferedInputStream(new FileInputStream(fileName));
prop.load(is);
if (is != null)
is.close();
} catch (Exception e) {
System.out.println(e + "file " + fileName + " not found");
}
return prop.getProperty("contentRoorName");
}
}