Liferay 6.2-ce-ga5

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 sourceFileVersion, FileVersion destinationFileVersion)
           
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. As of 6.2.0
static void trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)
           
 
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 sourceFileVersion,
                                 FileVersion destinationFileVersion)
                          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 sourceFileVersion,
                           FileVersion destinationFileVersion)

setVideoProcessor

public void setVideoProcessor(VideoProcessor videoProcessor)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5