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 StreamRepositoryService
public File getFile(RepositoryContext context, String uri)
public InputStream getInputStream(RepositoryContext context, 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
public <K extends Resource> K getResource(RepositoryContext context, String uri, Class<K> resourceType)
getResource
in interface RepositoryService
public ResourceInfo getResourceInfo(RepositoryContext context, String location)
getResourceInfo
in interface RepositoryService
Copyright © 2021 TIBCO Software Inc.. All rights reserved.