/**
* Resource name.
*/
- private String _resource;
+ private String resource;
/**
* Construct the class path resource.
* Resource
*/
public ClassPathResource(String aResource) {
- _resource = aResource;
+ resource = aResource;
}
/*
*/
public InputStream getInputStream() throws IOException {
InputStream stream = Thread.currentThread().getContextClassLoader()
- .getResourceAsStream(_resource);
+ .getResourceAsStream(resource);
if (stream == null) {
- throw new IOException("Class path resource '" + _resource
+ throw new IOException("Class path resource '" + resource
+ "' not found.");
}
return stream;
* @see java.lang.Object#toString()
*/
public String toString() {
- return "ClassPathResource(" + _resource + ")";
+ return "ClassPathResource(" + resource + ")";
}
}