Package com.microej.wear.services
Interface ExternalResourceService
-
public interface ExternalResourceServiceThis service allows Features to create and delete external resources.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classExternalResourceService.FormatEnumerates formats.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateExternalImage(java.lang.String path, ExternalResourceService.Format format, byte[] compressedData)Creates an external image at the given path in the given format with the given compressed data.voidcreateExternalResource(java.lang.String path, byte[] data)Creates an external resource at the given path with the given data.voiddeleteExternalResources(java.lang.String path)Deletes the external resources contained in the folder at the given path.
-
-
-
Method Detail
-
createExternalResource
void createExternalResource(java.lang.String path, byte[] data) throws java.io.IOExceptionCreates an external resource at the given path with the given data.- Parameters:
path- the path of the external resource.data- the data of the external resource.- Throws:
java.io.IOException- if the external resource could not be created.
-
createExternalImage
void createExternalImage(java.lang.String path, ExternalResourceService.Format format, byte[] compressedData) throws java.io.IOExceptionCreates an external image at the given path in the given format with the given compressed data.- Parameters:
path- the path of the external image.format- the format of the external image.compressedData- the compressed data of the external image.- Throws:
java.io.IOException- if the external image could not be created.
-
deleteExternalResources
void deleteExternalResources(java.lang.String path)
Deletes the external resources contained in the folder at the given path.- Parameters:
path- the path of the folder.
-
-