import java.io.IOException;
import java.io.InputStream;
-
/**
* Represents an input resource in the classpath.
*/
*/
private String resource;
-/**
+ /**
* Construct the class path resource.
- *
+ *
* @param aResource
* Resource
*/
/*
* (non-Javadoc)
- *
+ *
* @see org.wamblee.io.InputResource#getInputStream()
*/
- /**
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- *
- * @throws IOException DOCUMENT ME!
- */
public InputStream getInputStream() throws IOException {
InputStream stream = Thread.currentThread().getContextClassLoader()
.getResourceAsStream(resource);
if (stream == null) {
- throw new IOException("Class path resource '" + resource
- + "' not found.");
+ throw new IOException("Class path resource '" + resource +
+ "' not found.");
}
return stream;
/*
* (non-Javadoc)
- *
+ *
* @see java.lang.Object#toString()
*/
- /**
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
public String toString() {
return "ClassPathResource(" + resource + ")";
}