Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.util
Class VideoProcessorUtil

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

public class VideoProcessorUtil
extends Object


Constructor Summary
VideoProcessorUtil()
           
 
Method Summary
static void generateVideo(FileVersion fileVersion)
           
static InputStream getPreviewAsStream(FileVersion fileVersion, String type)
           
static long getPreviewFileSize(FileVersion fileVersion, String type)
           
static InputStream getThumbnailAsStream(FileVersion fileVersion, int index)
           
static long getThumbnailFileSize(FileVersion fileVersion, int index)
           
static Set<String> getVideoMimeTypes()
           
static VideoProcessor getVideoProcessor()
           
static boolean hasVideo(FileVersion fileVersion)
           
static boolean isSupported(String mimeType)
           
static boolean isVideoSupported(FileVersion fileVersion)
           
static boolean isVideoSupported(String mimeType)
           
 void setVideoProcessor(VideoProcessor videoProcessor)
          Deprecated.  
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 Exception
Throws:
Exception

getPreviewAsStream

public static InputStream getPreviewAsStream(FileVersion fileVersion,
                                             String type)
                                      throws Exception
Throws:
Exception

getPreviewFileSize

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

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

getVideoMimeTypes

public static Set<String> getVideoMimeTypes()

getVideoProcessor

public static VideoProcessor getVideoProcessor()

hasVideo

public static boolean hasVideo(FileVersion fileVersion)

isSupported

public static boolean isSupported(String mimeType)

isVideoSupported

public static boolean isVideoSupported(FileVersion fileVersion)

isVideoSupported

public static boolean isVideoSupported(String mimeType)

trigger

public static void trigger(FileVersion fileVersion)

setVideoProcessor

public void setVideoProcessor(VideoProcessor videoProcessor)
Deprecated. 


Liferay 6.1.2-ce-ga3