public class FileMetadataExtractorImpl extends Object implements FileMetadataExtractor
| Constructor and Description |
|---|
FileMetadataExtractorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
Map<String,Object> |
extractMetadata(File file) |
Map<String,Object> |
extractMetadata(org.apache.sling.api.resource.Resource resource) |
void |
updateMetadata(File file) |
void |
updateMetadata(File file,
boolean persist) |
public void activate(org.osgi.service.component.ComponentContext context)
public Map<String,Object> extractMetadata(File file) throws IOException
extractMetadata in interface FileMetadataExtractorIOExceptionpublic void updateMetadata(File file) throws IOException
updateMetadata in interface FileMetadataExtractorIOExceptionpublic void updateMetadata(File file, boolean persist) throws IOException
updateMetadata in interface FileMetadataExtractorIOExceptionpublic Map<String,Object> extractMetadata(org.apache.sling.api.resource.Resource resource) throws IOException, SAXException, org.apache.tika.exception.TikaException
IOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.