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 |
|---|---|
File |
getFile(RepositoryContext context,
String uri) |
InputStream |
getInputStream(RepositoryContext context,
String uri) |
InputStream |
getInputStream(String uri) |
OutputStream |
getOutputStream(String uri) |
<K extends Resource> |
getResource(RepositoryContext context,
String uri,
Class<K> resourceType) |
Resource |
getResource(String uri) |
<K extends Resource> |
getResource(String uri,
Class<K> resourceType) |
ResourceInfo |
getResourceInfo(RepositoryContext context,
String location) |
String |
getRoot() |
protected File |
locateFile(String location) |
protected Path |
rootNormalizedPath() |
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()
protected Path rootNormalizedPath()
public InputStream getInputStream(String uri)
getInputStream in interface StreamRepositoryServicepublic File getFile(RepositoryContext context, String uri)
public InputStream getInputStream(RepositoryContext context, String uri)
getInputStream in interface StreamRepositoryServicepublic OutputStream getOutputStream(String uri)
getOutputStream in interface StreamRepositoryServicepublic Resource getResource(String uri)
getResource in interface RepositoryServicepublic void saveResource(String uri, Resource resource)
saveResource in interface RepositoryServicepublic <K extends Resource> K getResource(String uri, Class<K> resourceType)
getResource in interface RepositoryServicepublic <K extends Resource> K getResource(RepositoryContext context, String uri, Class<K> resourceType)
getResource in interface RepositoryServicepublic ResourceInfo getResourceInfo(RepositoryContext context, String location)
getResourceInfo in interface RepositoryServiceCopyright © 2019 TIBCO Software Inc.. All rights reserved.