com.liferay.portlet.documentlibrary.util
Class VideoProcessorUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.util.VideoProcessorUtil

public class VideoProcessorUtil
extends java.lang.Object

Author:
Sergio González

Constructor Summary
VideoProcessorUtil()
           
 
Method Summary
static void generateVideo(FileVersion fileVersion)
           
static java.io.InputStream getPreviewAsStream(FileVersion fileVersion, java.lang.String type)
           
static long getPreviewFileSize(FileVersion fileVersion, java.lang.String type)
           
static java.io.InputStream getThumbnailAsStream(FileVersion fileVersion, int index)
           
static long getThumbnailFileSize(FileVersion fileVersion, int index)
           
static java.util.Set<java.lang.String> getVideoMimeTypes()
           
static VideoProcessor getVideoProcessor()
           
static boolean hasVideo(FileVersion fileVersion)
           
static boolean isSupported(java.lang.String mimeType)
           
static boolean isVideoSupported(FileVersion fileVersion)
           
static boolean isVideoSupported(java.lang.String mimeType)
           
 void setVideoProcessor(VideoProcessor videoProcessor)
           
static void trigger(FileVersion fileVersion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoProcessorUtil

public VideoProcessorUtil()
Method Detail

generateVideo

public static void generateVideo(FileVersion fileVersion)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getPreviewAsStream

public static java.io.InputStream getPreviewAsStream(FileVersion fileVersion,
                                                     java.lang.String type)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

getPreviewFileSize

public static long getPreviewFileSize(FileVersion fileVersion,
                                      java.lang.String type)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getThumbnailAsStream

public static java.io.InputStream getThumbnailAsStream(FileVersion fileVersion,
                                                       int index)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

getThumbnailFileSize

public static long getThumbnailFileSize(FileVersion fileVersion,
                                        int index)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getVideoMimeTypes

public static java.util.Set<java.lang.String> getVideoMimeTypes()

getVideoProcessor

public static VideoProcessor getVideoProcessor()

hasVideo

public static boolean hasVideo(FileVersion fileVersion)

isSupported

public static boolean isSupported(java.lang.String mimeType)

isVideoSupported

public static boolean isVideoSupported(FileVersion fileVersion)

isVideoSupported

public static boolean isVideoSupported(java.lang.String mimeType)

trigger

public static void trigger(FileVersion fileVersion)

setVideoProcessor

public void setVideoProcessor(VideoProcessor videoProcessor)