net.sf.jasperreports.jsf.resource
Interface Resource

All Known Implementing Classes:
ClasspathResource, ContextResource, FileResource, URLResource

public interface Resource

Resource abstraction which can be used to load reports from any kind of source

Author:
antonio.alonso

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 getName()
          Name of the resource.
 String getPath()
          The path part of the resource.
 String getSimpleName()
           
 

Method Detail

getName

String getName()
Name of the resource.


getSimpleName

String getSimpleName()

getLocation

URL getLocation()
                throws IOException
Obtains the URL location of this resource.

Returns:
The location of the resource
Throws:
IOException

getInputStream

InputStream getInputStream()
                           throws IOException
Obtains an InputStream which can be used to read the resource data.

Users of this stream are responsible of closing it

Returns:
An InputStream to read the resource data
Throws:
IOException

getPath

String getPath()
The path part of the resource.

Returns:
the absolute path to the resource.


Copyright © 2011 SourceForge.net. All Rights Reserved.