Interface ImageManager
public interface ImageManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Copies an image from one location to another.void
deleteImage
(String path) Returns a list of images at the given folder, without their BLOB data.void
insertImage
(String name, String desc, ImageFormat type, String dir, byte[] input, int width, int height, int size) void
insertImageFolder
(String name, String dir) Inserts a new image folder.
-
Method Details
-
copyImage
Copies an image from one location to another.- Parameters:
from
- The path to the image to copydest
- The path to the destination path to copy the image to- Throws:
PushException
- If the image cannot be copied
-
deleteImage
- Throws:
PushException
-
getImages
Returns a list of images at the given folder, without their BLOB data. -
insertImage
void insertImage(String name, String desc, ImageFormat type, String dir, byte[] input, int width, int height, int size) throws PushException - Throws:
PushException
-
getImage
-
insertImageFolder
Inserts a new image folder.- Parameters:
name
- The name of the folder (not a path)dir
- The path of the parent folder, ornull
for the root folder.- Throws:
PushException
-