public class ResourceStreamSourceCurrentClassClassPath extends ResourceStreamSourceAbstract
This is useful if (a) the contextClassLoader is not available and (b) the contextClassLoader does not load from this classes ClassLoader (for example when running under Ant while running unit tests as part of an automated build).
| Constructor and Description |
|---|
ResourceStreamSourceCurrentClassClassPath() |
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
doReadResource(String resourcePath)
Mandatory hook method; subclasses can return either null or
throw an exception if the resource could not be found.
|
String |
getName() |
readResource, toString, writeResourcepublic ResourceStreamSourceCurrentClassClassPath()
protected InputStream doReadResource(String resourcePath) throws IOException
ResourceStreamSourceAbstractdoReadResource in class ResourceStreamSourceAbstractIOExceptionCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.