com.liferay.portlet.documentlibrary.util
Interface AudioProcessor
public interface AudioProcessor
PREVIEW_TYPE
static final String PREVIEW_TYPE
- See Also:
- Constant Field Values
exportGeneratedFiles
void exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
throws Exception
- Throws:
Exception
generateAudio
void generateAudio(FileVersion fileVersion)
throws Exception
- Throws:
Exception
getAudioMimeTypes
Set<String> getAudioMimeTypes()
getPreviewAsStream
InputStream getPreviewAsStream(FileVersion fileVersion,
String type)
throws Exception
- Throws:
Exception
getPreviewFileSize
long getPreviewFileSize(FileVersion fileVersion,
String type)
throws Exception
- Throws:
Exception
hasAudio
boolean hasAudio(FileVersion fileVersion)
importGeneratedFiles
void importGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
throws Exception
- Throws:
Exception
isAudioSupported
boolean isAudioSupported(FileVersion fileVersion)
isAudioSupported
boolean isAudioSupported(String mimeType)
isSupported
boolean isSupported(String mimeType)
trigger
void trigger(FileVersion fileVersion)