Package net.sf.jasperreports.repo
Class DefaultRepositoryService
java.lang.Object
net.sf.jasperreports.repo.DefaultRepositoryService
- All Implemented Interfaces:
RepositoryService
,StreamRepositoryService
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClassLoader
static final String
protected JasperReportsContext
static final String
protected URLStreamHandlerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInputStream
(String uri) getInputStream
(RepositoryContext context, String uri) getOutputStream
(String uri) getResource
(String uri) <K extends Resource>
KgetResource
(String uri, Class<K> resourceType) <K extends Resource>
KgetResource
(RepositoryContext context, String uri, Class<K> resourceType) getResourceInfo
(RepositoryContext context, String location) protected File
resolveFile
(RepositoryContext context, String uri) void
saveResource
(String uri, Resource resource) void
setClassLoader
(ClassLoader classLoader) void
setURLStreamHandlerFactory
(URLStreamHandlerFactory urlHandlerFactory)
-
Field Details
-
PROPERTY_FILES_ENABLED
- See Also:
-
EXCEPTION_MESSAGE_KEY_NOT_IMPLEMENTED
- See Also:
-
jasperReportsContext
-
classLoader
-
urlHandlerFactory
-
-
Constructor Details
-
DefaultRepositoryService
-
-
Method Details
-
setClassLoader
-
setURLStreamHandlerFactory
-
getInputStream
- Specified by:
getInputStream
in interfaceStreamRepositoryService
-
getInputStream
- Specified by:
getInputStream
in interfaceStreamRepositoryService
-
resolveFile
-
getOutputStream
- Specified by:
getOutputStream
in interfaceStreamRepositoryService
-
getResource
- Specified by:
getResource
in interfaceRepositoryService
-
saveResource
- Specified by:
saveResource
in interfaceRepositoryService
-
getResource
- Specified by:
getResource
in interfaceRepositoryService
-
getResource
public <K extends Resource> K getResource(RepositoryContext context, String uri, Class<K> resourceType) - Specified by:
getResource
in interfaceRepositoryService
-
getResourceInfo
- Specified by:
getResourceInfo
in interfaceRepositoryService
-