public class ImageProcessorUtil
extends Object
Constructor and Description |
---|
ImageProcessorUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanUp(FileEntry fileEntry) |
static void |
cleanUp(FileVersion fileVersion) |
static void |
generateImages(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
static Set<String> |
getImageMimeTypes() |
static ImageProcessor |
getImageProcessor() |
static InputStream |
getPreviewAsStream(FileVersion fileVersion) |
static long |
getPreviewFileSize(FileVersion fileVersion) |
static String |
getPreviewType(FileVersion fileVersion) |
static InputStream |
getThumbnailAsStream(FileVersion fileVersion,
int index) |
static long |
getThumbnailFileSize(FileVersion fileVersion,
int index) |
static String |
getThumbnailType(FileVersion fileVersion) |
static boolean |
hasImages(FileVersion fileVersion) |
static boolean |
isImageSupported(FileVersion fileVersion) |
static boolean |
isImageSupported(String mimeType) |
static boolean |
isSupported(String mimeType) |
static void |
storeThumbnail(long companyId,
long groupId,
long fileEntryId,
long fileVersionId,
long custom1ImageId,
long custom2ImageId,
InputStream is,
String type) |
static void |
trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
public static void cleanUp(FileEntry fileEntry)
public static void cleanUp(FileVersion fileVersion)
public static void generateImages(FileVersion sourceFileVersion, FileVersion destinationFileVersion) throws Exception
Exception
public static Set<String> getImageMimeTypes()
public static ImageProcessor getImageProcessor()
public static InputStream getPreviewAsStream(FileVersion fileVersion) throws Exception
Exception
public static long getPreviewFileSize(FileVersion fileVersion) throws Exception
Exception
public static String getPreviewType(FileVersion fileVersion)
public static InputStream getThumbnailAsStream(FileVersion fileVersion, int index) throws Exception
Exception
public static long getThumbnailFileSize(FileVersion fileVersion, int index) throws Exception
Exception
public static String getThumbnailType(FileVersion fileVersion)
public static boolean hasImages(FileVersion fileVersion)
public static boolean isImageSupported(FileVersion fileVersion)
public static boolean isImageSupported(String mimeType)
public static boolean isSupported(String mimeType)
public static void storeThumbnail(long companyId, long groupId, long fileEntryId, long fileVersionId, long custom1ImageId, long custom2ImageId, InputStream is, String type) throws Exception
Exception
public static void trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)