|
||||||||||
| 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(java.lang.String resourceName)
Load a named resource using the current threads context classloader. |
|
ClassLoaderAsset(java.lang.String resourceName,
java.lang.ClassLoader classLoader)
Load a named resource using the given classloader. |
|
| Method Summary | |
|---|---|
java.io.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(java.lang.String resourceName)
resourceName - The name of the resource to load
java.lang.IllegalArgumentException - resourceName can not be null
java.lang.IllegalArgumentException - resourceName must be found in given classloader
public ClassLoaderAsset(java.lang.String resourceName,
java.lang.ClassLoader classLoader)
resourceName - The name of the resource to loadclassLoader - The ClassLoader to use
java.lang.IllegalArgumentException - resourceName can not be null
java.lang.IllegalArgumentException - classloader can not be null
java.lang.IllegalArgumentException - resourceName must be found in given classloader| Method Detail |
|---|
public java.io.InputStream openStream()
openStream in interface AssetInputStream 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 | |||||||||