com.liferay.portlet.documentlibrary.util
Class ImageProcessorUtil
java.lang.Object
com.liferay.portlet.documentlibrary.util.ImageProcessorUtil
public class ImageProcessorUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageProcessorUtil
public ImageProcessorUtil()
cleanUp
public static void cleanUp(FileEntry fileEntry)
cleanUp
public static void cleanUp(FileVersion fileVersion)
generateImages
public static void generateImages(FileVersion fileVersion)
getImageMimeTypes
public static Set<String> getImageMimeTypes()
getImageProcessor
public static ImageProcessor getImageProcessor()
getPreviewAsStream
public static InputStream getPreviewAsStream(FileVersion fileVersion)
throws Exception
- Throws:
Exception
getPreviewFileSize
public static long getPreviewFileSize(FileVersion fileVersion)
throws Exception
- Throws:
Exception
getPreviewType
public static String getPreviewType(FileVersion fileVersion)
getThumbnailAsStream
public static InputStream getThumbnailAsStream(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getThumbnailFileSize
public static long getThumbnailFileSize(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getThumbnailType
public static String getThumbnailType(FileVersion fileVersion)
hasImages
public static boolean hasImages(FileVersion fileVersion)
isImageSupported
public static boolean isImageSupported(FileVersion fileVersion)
isImageSupported
public static boolean isImageSupported(String mimeType)
isSupported
public static boolean isSupported(String mimeType)
storeThumbnail
public static void storeThumbnail(long companyId,
long groupId,
long fileEntryId,
long fileVersionId,
long custom1ImageId,
long custom2ImageId,
InputStream is,
String type)
throws Exception
- Throws:
Exception
trigger
public static void trigger(FileVersion fileVersion)
setImageProcessor
public void setImageProcessor(ImageProcessor imageProcessor)
- Deprecated.