@AlfrescoPublicApi public interface MetadataEmbedder extends ContentWorker
| Modifier and Type | Method and Description |
|---|---|
void |
embed(Map<QName,Serializable> properties,
ContentReader reader,
ContentWriter writer)
Embeds the given properties into the file specified by the given content writer.
|
boolean |
isEmbeddingSupported(String mimetype)
Determines if the extracter works against the given mimetype.
|
boolean isEmbeddingSupported(String mimetype)
mimetype - the document mimetypevoid embed(Map<QName,Serializable> properties, ContentReader reader, ContentWriter writer) throws ContentIOException
The embedding viability can be determined by an up front call to
isEmbeddingSupported(String).
The source mimetype must be available on the
ContentAccessor.getMimetype() method
of the writer.
properties - the model properties to embedreader - the reader for the original source content filewriter - the writer for the content after metadata has been embeddedContentIOExceptionCopyright © 2005–2021 Alfresco Software. All rights reserved.