|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.jsf.resource.AbstractResource
net.sf.jasperreports.jsf.resource.providers.ContextResource
public final class ContextResource
The Class ContextResourceLoader.
| Constructor Summary | |
|---|---|
protected |
ContextResource(String name,
ExternalContext servletContext)
Instantiates a new context resource loader. |
| Method Summary | |
|---|---|
InputStream |
getInputStream()
Obtains an InputStream which can be used to read the resource data. |
URL |
getLocation()
Obtains the URL location of this resource |
String |
getPath()
The path part of the resource |
| Methods inherited from class net.sf.jasperreports.jsf.resource.AbstractResource |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.jasperreports.jsf.resource.Resource |
|---|
getName |
| Constructor Detail |
|---|
protected ContextResource(String name,
ExternalContext servletContext)
servletContext - the servlet context| Method Detail |
|---|
public URL getLocation()
throws MalformedURLException
Resource
getLocation in interface ResourceMalformedURLExceptionpublic InputStream getInputStream()
ResourceUsers of this stream are responsible of closing it
getInputStream in interface Resourcepublic String getPath()
Resource
getPath in interface Resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||