@ProviderType
public interface FileMetadataExtractor
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
extractMetadata(File file)
Extract the metadata from the specified file and return the resulting
metadata
|
void |
updateMetadata(File file)
Extract the metadata from the specified file and persist the results under
the jcr:content/metadata node of the file resource
|
void |
updateMetadata(File file,
boolean persist)
Extract the metadata from the specified file and persist the results under
the jcr:content/metadata node of the file resource
|
Map<String,Object> extractMetadata(File file) throws IOException
file - the file from which to extract the metadataIOException - an exception occurs extracting the metadatavoid updateMetadata(File file) throws IOException
file - the file to extract the metadata fromIOException - an exception occurs updating the metadatavoid updateMetadata(File file, boolean persist) throws IOException
file - the file to extract the metadata frompersist - if true, persist the results, if not leave the changes
unpersistedIOException - an exception occurs updating the metadataCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.