|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.api.asset.ClassLoaderAsset
public class ClassLoaderAsset
ClassloaderAsset
Implementation of a Asset
backed by a resource located in the Classloader.
Constructor Summary | |
---|---|
ClassLoaderAsset(String resourceName)
Load a named resource using the current threads context classloader. |
|
ClassLoaderAsset(String resourceName,
ClassLoader classLoader)
Load a named resource using the given classloader. |
Method Summary | |
---|---|
InputStream |
openStream()
Opens up the given resource as a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassLoaderAsset(String resourceName)
resourceName
- The name of the resource to load
IllegalArgumentException
- resourceName can not be null
IllegalArgumentException
- resourceName must be found in given classloaderpublic ClassLoaderAsset(String resourceName, ClassLoader classLoader)
resourceName
- The name of the resource to loadclassLoader
- The ClassLoader to use
IllegalArgumentException
- resourceName can not be null
IllegalArgumentException
- classloader can not be null
IllegalArgumentException
- resourceName must be found in given classloaderMethod Detail |
---|
public InputStream openStream()
openStream
in interface Asset
InputStream
for each call, or null if this type simply represents a logical path
within an Archive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |