Package net.sf.jasperreports.repo
Class RepositoryUtil
- java.lang.Object
-
- net.sf.jasperreports.repo.RepositoryUtil
-
public final class RepositoryUtil extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_BYTE_DATA_LOADING_ERROR
static String
EXCEPTION_MESSAGE_KEY_BYTE_DATA_NOT_FOUND
static String
EXCEPTION_MESSAGE_KEY_INPUT_STREAM_NOT_FOUND
static String
EXCEPTION_MESSAGE_KEY_REPORT_NOT_FOUND
static String
EXCEPTION_MESSAGE_KEY_RESOURCET_NOT_FOUND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytesFromLocation(String location)
InputStream
getInputStreamFromLocation(String location)
static RepositoryUtil
getInstance(JasperReportsContext jasperReportsContext)
static RepositoryUtil
getInstance(RepositoryContext repositoryContext)
JasperReport
getReport(ReportContext reportContext, String location)
RepositoryContext
getRepositoryContext()
<K extends Resource>
KgetResourceFromLocation(String location, Class<K> resourceType)
ResourceInfo
getResourceInfo(String location)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_BYTE_DATA_LOADING_ERROR
public static final String EXCEPTION_MESSAGE_KEY_BYTE_DATA_LOADING_ERROR
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_BYTE_DATA_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_BYTE_DATA_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_INPUT_STREAM_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_INPUT_STREAM_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_REPORT_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_REPORT_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_RESOURCET_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_RESOURCET_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static RepositoryUtil getInstance(JasperReportsContext jasperReportsContext)
-
getInstance
public static RepositoryUtil getInstance(RepositoryContext repositoryContext)
-
getReport
public JasperReport getReport(ReportContext reportContext, String location) throws JRException
- Throws:
JRException
-
getResourceFromLocation
public <K extends Resource> K getResourceFromLocation(String location, Class<K> resourceType) throws JRException
- Throws:
JRException
-
getInputStreamFromLocation
public InputStream getInputStreamFromLocation(String location) throws JRException
- Throws:
JRException
-
getBytesFromLocation
public byte[] getBytesFromLocation(String location) throws JRException
- Throws:
JRException
-
getResourceInfo
public ResourceInfo getResourceInfo(String location)
-
getRepositoryContext
public RepositoryContext getRepositoryContext()
-
-