public class FileRepositoryService extends Object implements StreamRepositoryService
Modifier and Type | Field and Description |
---|---|
static String |
EXCEPTION_MESSAGE_KEY_NOT_IMPLEMENTED |
Constructor and Description |
---|
FileRepositoryService(JasperReportsContext jasperReportsContext,
String root,
boolean resolveAbsolutePath) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream(String uri) |
OutputStream |
getOutputStream(String uri) |
Resource |
getResource(String uri) |
<K extends Resource> |
getResource(String uri,
Class<K> resourceType) |
String |
getRoot() |
void |
saveResource(String uri,
Resource resource) |
void |
setRoot(String root) |
public static final String EXCEPTION_MESSAGE_KEY_NOT_IMPLEMENTED
public FileRepositoryService(JasperReportsContext jasperReportsContext, String root, boolean resolveAbsolutePath)
public void setRoot(String root)
public String getRoot()
public InputStream getInputStream(String uri)
getInputStream
in interface StreamRepositoryService
public OutputStream getOutputStream(String uri)
getOutputStream
in interface StreamRepositoryService
public Resource getResource(String uri)
getResource
in interface RepositoryService
public void saveResource(String uri, Resource resource)
saveResource
in interface RepositoryService
public <K extends Resource> K getResource(String uri, Class<K> resourceType)
getResource
in interface RepositoryService
Copyright © 2017. All rights reserved.