Class FileMetadataExtractorImpl
- java.lang.Object
-
- org.apache.sling.cms.core.internal.FileMetadataExtractorImpl
-
- All Implemented Interfaces:
FileMetadataExtractor
public class FileMetadataExtractorImpl extends Object implements FileMetadataExtractor
-
-
Constructor Summary
Constructors Constructor Description FileMetadataExtractorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.service.component.ComponentContext context)Map<String,Object>extractMetadata(org.apache.sling.api.resource.Resource resource)Map<String,Object>extractMetadata(File file)voidupdateMetadata(File file)voidupdateMetadata(File file, boolean persist)
-
-
-
Method Detail
-
activate
public void activate(org.osgi.service.component.ComponentContext context)
-
extractMetadata
public Map<String,Object> extractMetadata(File file) throws IOException
- Specified by:
extractMetadatain interfaceFileMetadataExtractor- Throws:
IOException
-
updateMetadata
public void updateMetadata(File file) throws IOException
- Specified by:
updateMetadatain interfaceFileMetadataExtractor- Throws:
IOException
-
updateMetadata
public void updateMetadata(File file, boolean persist) throws IOException
- Specified by:
updateMetadatain interfaceFileMetadataExtractor- Throws:
IOException
-
extractMetadata
public Map<String,Object> extractMetadata(org.apache.sling.api.resource.Resource resource) throws IOException, SAXException, org.apache.tika.exception.TikaException
- Throws:
IOExceptionSAXExceptionorg.apache.tika.exception.TikaException
-
-