public class ClassAsset extends Object implements Asset
Constructor and Description |
---|
ClassAsset(Class<?> clazz)
Load any class as a resource.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
openStream()
Converts the Class name into a Resource URL and uses the ClassloaderResource for loading the Class.
|
public ClassAsset(Class<?> clazz)
clazz
- The class to loadIllegalArgumentException
- Class can not be nullpublic InputStream openStream()
openStream
in interface Asset
InputStream
for each call, or null if this type simply represents a logical path
within an Archive
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.