net.sf.jasperreports.repo
Class RepositoryUtil

java.lang.Object
  extended by net.sf.jasperreports.repo.RepositoryUtil

public final class RepositoryUtil
extends java.lang.Object

Version:
$Id: RepositoryUtil.java 5346 2012-05-08 12:08:01Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Method Summary
static byte[] getBytes(java.lang.String location)
          Deprecated. Replaced by getBytesFromLocation(String).
 byte[] getBytesFromLocation(java.lang.String location)
           
static java.io.InputStream getInputStream(java.lang.String location)
          Deprecated. Replaced by getInputStreamFromLocation(String).
 java.io.InputStream getInputStreamFromLocation(java.lang.String location)
           
static RepositoryUtil getInstance(JasperReportsContext jasperReportsContext)
           
 JasperReport getReport(ReportContext reportContext, java.lang.String location)
           
static JasperReport getReport(java.lang.String location)
          Deprecated. Replaced by getReport(ReportContext, String).
static java.util.List<RepositoryService> getRepositoryServices()
          Deprecated. Replaced by getServices().
static
<K extends Resource>
K
getResource(java.lang.String location, java.lang.Class<K> resourceType)
          Deprecated. Replaced by getResourceFromLocation(String, Class).
<K extends Resource>
K
getResourceFromLocation(java.lang.String location, java.lang.Class<K> resourceType)
           
static ReportContext getThreadReportContext()
          Deprecated. To be removed.
static void resetThreadReportContext()
          Deprecated. To be removed.
static void revertRepositoryContext()
          Deprecated. To be removed.
static void setRepositoryContext(RepositoryContext context)
          Deprecated. To be removed.
static void setThreadReportContext(ReportContext reportContext)
          Deprecated. To be removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RepositoryUtil getInstance(JasperReportsContext jasperReportsContext)

getRepositoryServices

public static java.util.List<RepositoryService> getRepositoryServices()
Deprecated. Replaced by getServices().


setRepositoryContext

public static void setRepositoryContext(RepositoryContext context)
Deprecated. To be removed.

private static RepositoryContext getRepositoryContext() { return (RepositoryContext)localContextStack.top(); } /**


revertRepositoryContext

public static void revertRepositoryContext()
Deprecated. To be removed.


getThreadReportContext

public static ReportContext getThreadReportContext()
Deprecated. To be removed.


setThreadReportContext

public static void setThreadReportContext(ReportContext reportContext)
Deprecated. To be removed.


resetThreadReportContext

public static void resetThreadReportContext()
Deprecated. To be removed.


getReport

public JasperReport getReport(ReportContext reportContext,
                              java.lang.String location)
                       throws JRException
Throws:
JRException

getReport

public static JasperReport getReport(java.lang.String location)
                              throws JRException
Deprecated. Replaced by getReport(ReportContext, String).

Throws:
JRException

getResourceFromLocation

public <K extends Resource> K getResourceFromLocation(java.lang.String location,
                                                      java.lang.Class<K> resourceType)
                                           throws JRException
Throws:
JRException

getResource

public static <K extends Resource> K getResource(java.lang.String location,
                                                 java.lang.Class<K> resourceType)
                                      throws JRException
Deprecated. Replaced by getResourceFromLocation(String, Class).

Throws:
JRException

getInputStreamFromLocation

public java.io.InputStream getInputStreamFromLocation(java.lang.String location)
                                               throws JRException
Throws:
JRException

getInputStream

public static java.io.InputStream getInputStream(java.lang.String location)
                                          throws JRException
Deprecated. Replaced by getInputStreamFromLocation(String).

Throws:
JRException

getBytesFromLocation

public byte[] getBytesFromLocation(java.lang.String location)
                            throws JRException
Throws:
JRException

getBytes

public static byte[] getBytes(java.lang.String location)
                       throws JRException
Deprecated. Replaced by getBytesFromLocation(String).

Throws:
JRException


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com