public class Mp3Handler extends AbstractAssetHandler
Mp3Handler class ...| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_MIMETYPE
Mime type
|
PROPERTY_DEACTIVATED_MIME_TYPES| Constructor and Description |
|---|
Mp3Handler() |
| Modifier and Type | Method and Description |
|---|---|
ExtractedMetadata |
extractMetadata(Asset asset)
This method is used by the
ExtractMetadataProcess as part of the DAM
Update Asset workflow during import or update of an asset. |
java.awt.image.BufferedImage |
getImage(Rendition rendition)
|
java.lang.String[] |
getMimeTypes()
This method returns the mime types a particular
AssetHandler supports. |
canHandleSubAssets, createThumbnails, createThumbnails, createThumbnails, exportAsset, getImage, processRelated, processSubAssetspublic static final java.lang.String CONTENT_MIMETYPE
public ExtractedMetadata extractMetadata(Asset asset)
AssetHandlerExtractMetadataProcess as part of the DAM
Update Asset workflow during import or update of an asset. Implementations must return an ExtractedMetadata object, which may be empty if no metadata is extracted, or
contains the metadata values extracted from the binary being imported/updated at the time. The
ExtractMetadataProcess will later save the metadata contained in ExtractedMetadata to
the asset's metadata node (e.g. /content/dam/geometrixx/banners/banner-mono.png/jcr:content/metadata).
Implementations are free to decide which and how many metadata values are extracted.
The method argument represents the javax.jcr.Node of type nt:file holding the binary content or
the DAM Asset node (type dam:Asset), for which its original rendition would be retrieved.asset - The Asset, from whose original binary metadata will extracted.public java.awt.image.BufferedImage getImage(Rendition rendition) throws java.io.IOException
AssetHandlerAssets given Rendition. For images the
BufferedImage of the original image is returned, for other formats the first page is retrieved as
BufferedImagegetImage in interface AssetHandlergetImage in class AbstractAssetHandlerrendition - The rendition for which to retrieve its graphical representation.BufferedImage if a graphical representation exists, otherwise nulljava.io.IOException - in case an error is thrown while fetching the buffered imagepublic java.lang.String[] getMimeTypes()
AssetHandlerAssetHandler supports."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"