public interface ExternalResourceService
Modifier and Type | Interface and Description |
---|---|
static class |
ExternalResourceService.Format
Enumerates formats.
|
Modifier and Type | Method and Description |
---|---|
void |
createExternalImage(String path,
ExternalResourceService.Format format,
byte[] compressedData)
Creates an external image at the given path in the given format with the given compressed data.
|
void |
createExternalResource(String path,
byte[] data)
Creates an external resource at the given path with the given data.
|
void |
deleteExternalResources(String path)
Deletes the external resources contained in the folder at the given path.
|
void createExternalImage(String path, ExternalResourceService.Format format, byte[] compressedData) throws IOException
path
- the path of the external image.format
- the format of the external image.compressedData
- the compressed data of the external image.IOException
- if the external image could not be created.void createExternalResource(String path, byte[] data) throws IOException
path
- the path of the external resource.data
- the data of the external resource.IOException
- if the external resource could not be created.void deleteExternalResources(String path)
path
- the path of the folder.