* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- */
+ */
package org.wamblee.io;
import java.io.IOException;
/**
* Construct the class path resource.
- * @param aResource Resource
+ *
+ * @param aResource
+ * Resource
*/
- public ClassPathResource( String aResource ) {
+ public ClassPathResource(String aResource) {
_resource = aResource;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.wamblee.io.InputResource#getInputStream()
*/
- public InputStream getInputStream( ) throws IOException {
- InputStream stream = Thread.currentThread( ).getContextClassLoader( )
- .getResourceAsStream( _resource );
- if ( stream == null ) {
- throw new IOException("Class path resource '" + _resource + "' not found.");
+ public InputStream getInputStream() throws IOException {
+ InputStream stream = Thread.currentThread().getContextClassLoader()
+ .getResourceAsStream(_resource);
+ if (stream == null) {
+ throw new IOException("Class path resource '" + _resource
+ + "' not found.");
}
- return stream;
+ return stream;
}
-
- /** (non-Javadoc)
+
+ /*
+ * (non-Javadoc)
+ *
* @see java.lang.Object#toString()
*/
- public String toString( ) {
+ public String toString() {
return "ClassPathResource(" + _resource + ")";
}
}