org.equanda.reporting.servlet
Class FileResolver

java.lang.Object
  extended by org.equanda.reporting.servlet.FileResolver
All Implemented Interfaces:
ReportResolver

public class FileResolver
extends Object
implements ReportResolver

report resolver

Author:
Joachim Van der Auwera

Field Summary
static String PROPERTY_IMAGE_PATH
           
static String PROPERTY_REPORT_PATH
           
 
Constructor Summary
FileResolver()
           
FileResolver(String reportPath, String imagePath)
           
 
Method Summary
 InputStream getImageInputStream(String target)
          Get the InputStream for an image resource.
 String getImageRealPath(String target)
           
 String getImageURI(String contextPath)
           
 InputStream getInputStream(String target)
          Get the InputStream for a report resource (normally a subreport).
 String getRealPath(String target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_REPORT_PATH

public static final String PROPERTY_REPORT_PATH
See Also:
Constant Field Values

PROPERTY_IMAGE_PATH

public static final String PROPERTY_IMAGE_PATH
See Also:
Constant Field Values
Constructor Detail

FileResolver

public FileResolver()

FileResolver

public FileResolver(String reportPath,
                    String imagePath)
Method Detail

getInputStream

public InputStream getInputStream(String target)
Description copied from interface: ReportResolver
Get the InputStream for a report resource (normally a subreport).

Specified by:
getInputStream in interface ReportResolver
Parameters:
target - name of target
Returns:
InputStream with the resource

getRealPath

public String getRealPath(String target)

getImageInputStream

public InputStream getImageInputStream(String target)
Description copied from interface: ReportResolver
Get the InputStream for an image resource.

Specified by:
getImageInputStream in interface ReportResolver
Parameters:
target - name of target
Returns:
InputStream with the resource

getImageRealPath

public String getImageRealPath(String target)

getImageURI

public String getImageURI(String contextPath)


Copyright © 2007-2009. All Rights Reserved.