Liferay 6.2-ce-ga5

com.liferay.portal.metadata
Class XugglerRawMetadataProcessor

java.lang.Object
  extended by com.liferay.portal.metadata.BaseRawMetadataProcessor
      extended by com.liferay.portal.metadata.XugglerRawMetadataProcessor
All Implemented Interfaces:
RawMetadataProcessor
Direct Known Subclasses:
TikaRawMetadataProcessor

public class XugglerRawMetadataProcessor
extends BaseRawMetadataProcessor


Constructor Summary
XugglerRawMetadataProcessor()
           
 
Method Summary
protected  String convertTime(long microseconds)
           
 void exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement)
           
protected  org.apache.tika.metadata.Metadata extractMetadata(File file)
           
protected  org.apache.tika.metadata.Metadata extractMetadata(String extension, String mimeType, File file)
           
protected  org.apache.tika.metadata.Metadata extractMetadata(String extension, String mimeType, InputStream inputStream)
           
 void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement)
           
protected  boolean isSupported(String mimeType)
           
 
Methods inherited from class com.liferay.portal.metadata.BaseRawMetadataProcessor
createDDMFields, createDDMFieldsMap, getFields, getFieldValue, getMetadataValue, getRawMetadataMap, getRawMetadataMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XugglerRawMetadataProcessor

public XugglerRawMetadataProcessor()
Method Detail

exportGeneratedFiles

public void exportGeneratedFiles(PortletDataContext portletDataContext,
                                 FileEntry fileEntry,
                                 Element fileEntryElement)
                          throws Exception
Throws:
Exception

importGeneratedFiles

public void importGeneratedFiles(PortletDataContext portletDataContext,
                                 FileEntry fileEntry,
                                 FileEntry importedFileEntry,
                                 Element fileEntryElement)
                          throws Exception
Throws:
Exception

convertTime

protected String convertTime(long microseconds)

extractMetadata

protected org.apache.tika.metadata.Metadata extractMetadata(File file)
                                                     throws Exception
Throws:
Exception

extractMetadata

protected org.apache.tika.metadata.Metadata extractMetadata(String extension,
                                                            String mimeType,
                                                            File file)
                                                     throws SystemException
Specified by:
extractMetadata in class BaseRawMetadataProcessor
Throws:
SystemException

extractMetadata

protected org.apache.tika.metadata.Metadata extractMetadata(String extension,
                                                            String mimeType,
                                                            InputStream inputStream)
                                                     throws SystemException
Specified by:
extractMetadata in class BaseRawMetadataProcessor
Throws:
SystemException

isSupported

protected boolean isSupported(String mimeType)

Liferay 6.2-ce-ga5