@ProviderType
public interface FileMetadataExtractor
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.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
|
java.util.Map<java.lang.String,java.lang.Object> extractMetadata(File file) throws java.io.IOException
file
- the file from which to extract the metadatajava.io.IOException
- an exception occurs extracting the metadatavoid updateMetadata(File file) throws java.io.IOException
file
- the file to extract the metadata fromjava.io.IOException
- an exception occurs updating the metadatavoid updateMetadata(File file, boolean persist) throws java.io.IOException
file
- the file to extract the metadata frompersist
- if true, persist the results, if not leave the changes
unpersistedjava.io.IOException
- an exception occurs updating the metadataCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.