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 FileMetadataExtractor
IOException
public void updateMetadata(File file) throws IOException
updateMetadata
in interface FileMetadataExtractor
IOException
public void updateMetadata(File file, boolean persist) throws IOException
updateMetadata
in interface FileMetadataExtractor
IOException
public Map<String,Object> extractMetadata(org.apache.sling.api.resource.Resource resource) throws IOException, SAXException, org.apache.tika.exception.TikaException
IOException
SAXException
org.apache.tika.exception.TikaException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.