|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceContext
ResourceContext.
| Method Summary | |
|---|---|
byte[] |
getBytes()
Get the bytes for the resource |
ClassLoader |
getClassLoader()
Get the classLoader. |
String |
getClassName()
Get the class name |
InputStream |
getInputStream()
Get the input stream for the resource |
String |
getResourceName()
Get the resourceName. |
URL |
getUrl()
Get the url. |
boolean |
isClass()
Whether the resource is a class |
Class<?> |
loadClass()
Load a class Do isClass check before, unless you want to handle exception when resource is not actually a class. |
| Method Detail |
|---|
URL getUrl()
ClassLoader getClassLoader()
String getResourceName()
String getClassName()
boolean isClass()
Class<?> loadClass()
RuntimeException - for any errors during class loading
InputStream getInputStream()
throws IOException
IOException - for any error
byte[] getBytes()
throws IOException
IOException - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||