public class ClassLoaderResource extends AbstractIoResource<ClassLoader>
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Constructor and Description |
|---|
ClassLoaderResource(ClassLoader loader,
String resourceName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
ClassLoader |
getResourceLoader() |
InputStream |
openInputStream() |
getResourceType, getResourceValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforResourcefindByName, getNameList, getNames, ofName, removeByNamepublic ClassLoaderResource(ClassLoader loader, String resourceName)
public ClassLoader getResourceLoader()
public String getName()
getName in interface NamedResourcegetName in class AbstractIoResource<ClassLoader>public InputStream openInputStream() throws IOException
InputStream for the resource's dataIOException - If failed to open the streamCopyright © 2018–2020 The Apache Software Foundation. All rights reserved.