Package net.sf.jasperreports.repo
Class FileRepositoryService
java.lang.Object
net.sf.jasperreports.repo.FileRepositoryService
- All Implemented Interfaces:
RepositoryService
,StreamRepositoryService
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileRepositoryService
(JasperReportsContext jasperReportsContext, String root, boolean resolveAbsolutePath) -
Method Summary
Modifier and TypeMethodDescriptiongetFile
(RepositoryContext context, String uri) getInputStream
(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) getRoot()
protected File
locateFile
(String location) protected Path
void
saveResource
(String uri, Resource resource) void
-
Field Details
-
EXCEPTION_MESSAGE_KEY_NOT_IMPLEMENTED
- See Also:
-
-
Constructor Details
-
FileRepositoryService
public FileRepositoryService(JasperReportsContext jasperReportsContext, String root, boolean resolveAbsolutePath)
-
-
Method Details
-
setRoot
-
getRoot
-
rootNormalizedPath
-
getInputStream
- Specified by:
getInputStream
in interfaceStreamRepositoryService
-
getFile
-
getInputStream
- Specified by:
getInputStream
in interfaceStreamRepositoryService
-
locateFile
-
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
-