Interface ImageManager
-
public interface ImageManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcopyImage(java.lang.String from, java.lang.String dest)voiddeleteImage(java.lang.String path)ImageRecordgetImage(java.lang.String path)java.util.List<ImageRecord>getImages(java.lang.String dir)Returns a list of images at the given folder, without their BLOB data.voidinsertImage(java.lang.String name, java.lang.String desc, ImageFormat type, java.lang.String dir, byte[] input, int width, int height, int size)voidinsertImageFolder(java.lang.String name, java.lang.String dir)Inserts a new image folder.
-
-
-
Method Detail
-
copyImage
void copyImage(java.lang.String from, java.lang.String dest) throws java.lang.Exception- Throws:
java.lang.Exception
-
deleteImage
void deleteImage(java.lang.String path) throws java.lang.Exception- Throws:
java.lang.Exception
-
getImages
java.util.List<ImageRecord> getImages(java.lang.String dir)
Returns a list of images at the given folder, without their BLOB data.
-
insertImage
void insertImage(java.lang.String name, java.lang.String desc, ImageFormat type, java.lang.String dir, byte[] input, int width, int height, int size) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getImage
ImageRecord getImage(java.lang.String path)
-
insertImageFolder
void insertImageFolder(java.lang.String name, java.lang.String dir) throws java.sql.SQLExceptionInserts a new image folder.- Parameters:
name- The name of the folder (not a path)dir- The path of the parent folder, ornullfor the root folder.- Throws:
java.sql.SQLException
-
-