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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forResource
findByName, getNameList, getNames, ofName, removeByName
public ClassLoaderResource(ClassLoader loader, String resourceName)
public ClassLoader getResourceLoader()
public String getName()
getName
in interface NamedResource
getName
in class AbstractIoResource<ClassLoader>
public InputStream openInputStream() throws IOException
InputStream
for the resource's dataIOException
- If failed to open the streamCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.