JAVA UTIL RESOURCE

back to JAVA projects back to JAVA util projects

description
This project contains an utility class (ResourceTools) which can be used to manipulate system resources.

examples

 * ResourceTools.readPropertiesFromClasspath can be used to parse a properties file from the classpath. A property is added to the returned Properties object, indicating the location of the parsed properties file

Properties testProperties = new ResourceTools.readPropertiesFromClasspath("test.properties") System.out.println((testProperties == null) ?    "properties file not found" :     "properties file found at [" + testProperties.getProperty(ResourceTools.URL_PROPERTY) + "]")

dependencies

 * util-exception v0.3.1 for error handling
 * slf4j v1.7.7 for log messages

version history

 * 1.0.1 2014/08/31
 * updated util-exception version to 0.3.1
 * updated source/target version for java 8
 * update SLF4J version to 1.7.7
 * 1.0.0 2013/05/01
 * added methods to get resources URL or stream
 * added JUnit tests
 * 0.1 2012/11/03 first usable version (readPropertiesFromClasspath)

back to JAVA util projects back to JAVA projects