load Properties
/* */ public static final Properties loadProperties(String propertyFileRelativePath) /* */ { /* 67 */ Properties properties = null; /* */ try { /* 69 */ InputStream inputStream = getResourceAsStream(propertyFileRelativePath); /* 70 */ if (inputStream != null) { /* 71 */ properties = new Properties(); /* 72 */ properties.load(inputStream); /* 73 */ inputStream.close(); /* */ } /* */ } /* */ catch (IOException e) {} /* */ /* */ /* 79 */ return properties; /* */ }
Properties property = FileUtility.loadProperties("xx.properties");
String casFlag = property.getProperty("xx");