public class OpenOfficeHandler extends AbstractAssetHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
MIMETYPE_DOCX |
static String |
MIMETYPE_XLSX |
static String[] |
MIMETYPES_SUPPORTED |
PROPERTY_DEACTIVATED_MIME_TYPES| Constructor and Description |
|---|
OpenOfficeHandler() |
| 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. |
BufferedImage |
getImage(Rendition rendition)
This method retrieves the graphical representation of the given file.
|
BufferedImage |
getImage(Rendition rendition,
Dimension dim)
|
String[] |
getMimeTypes()
This method returns the mime types a particular
AssetHandler supports. |
canHandleSubAssets, createThumbnails, createThumbnails, createThumbnails, createThumbnails, createThumbnailsExt, exportAsset, processRelated, processSubAssets, processSubAssetspublic static final String MIMETYPE_DOCX
public static final String MIMETYPE_XLSX
public static final String[] MIMETYPES_SUPPORTED
public ExtractedMetadata extractMetadata(Asset asset)
AbstractAssetHandlerExtractMetadataProcess 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.extractMetadata in interface AssetHandlerextractMetadata in class AbstractAssetHandlerasset - the file nodeAsset.getMetadata(),
Asset.getMetadata(String),
Asset.getMetadataValue(String)public BufferedImage getImage(Rendition rendition) throws IOException
AbstractAssetHandlerBufferedImage
of the original image is returned, for other formats the first page is retrieved as BufferedImagegetImage in interface AssetHandlergetImage in class AbstractAssetHandlerrendition - to retrieve the image representationBufferedImage if a graphical representaion exists, otherwise nullIOException - in case an error is thrown while fetching the buffered imagepublic BufferedImage getImage(Rendition rendition, Dimension dim) throws IOException
AssetHandlerAssets given Rendition. For images the
BufferedImage of the original image is returned, for other formats the first page is retrieved as
BufferedImage.
If maxDimension is given, the handler should return an
image where no dimension extends the given value. This can be used to reduce
the memory footprint of large buffered images if the full resolution is not needed.
getImage in interface AssetHandlergetImage in class AbstractAssetHandlerrendition - The rendition for which to retrieve its graphical representation.dim - optional constraint for the maximal dimension of the image.BufferedImage if a graphical representation exists, otherwise nullIOException - in case an error is thrown while fetching the buffered imagepublic String[] getMimeTypes()
AssetHandler supports."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"