public interface ImageManager
Modifier and Type | Method and Description |
---|---|
void |
copyImage(java.lang.String from,
java.lang.String dest) |
void |
deleteImage(java.lang.String path) |
ImageRecord |
getImage(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.
|
void |
insertImage(java.lang.String name,
java.lang.String desc,
ImageFormat type,
java.lang.String dir,
byte[] input,
int width,
int height,
int size) |
void |
insertImageFolder(java.lang.String name,
java.lang.String dir)
Inserts a new image folder.
|
void copyImage(java.lang.String from, java.lang.String dest) throws java.lang.Exception
java.lang.Exception
void deleteImage(java.lang.String path) throws java.lang.Exception
java.lang.Exception
java.util.List<ImageRecord> getImages(java.lang.String dir)
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
java.sql.SQLException
ImageRecord getImage(java.lang.String path)
void insertImageFolder(java.lang.String name, java.lang.String dir) throws java.sql.SQLException
name
- The name of the folder (not a path)dir
- The path of the parent folder, or null
for the root folder.java.sql.SQLException