@ProviderType public interface Rendition extends Resource
Rendition
interface specifies the handling of an Asset
's rendition. Renditions are based on
the renditions found in the asset's rendition folder (./jcr:content/renditions). Such renditions are based on
nodes of type nt:file
.RESOURCE_TYPE_NON_EXISTING
Modifier and Type | Method and Description |
---|---|
Asset |
getAsset()
Returns this rendition's parent Asset.
|
Binary |
getBinary()
Returns the
Binary of this rendition. |
java.lang.String |
getMimeType()
Returns the mime type of the rendition's binary, as denoted by its
jcr:mimeType property. |
java.lang.String |
getName()
Returns the name of the rendition.
|
java.lang.String |
getPath()
Returns the path of the rendition, e.g.
|
ValueMap |
getProperties()
Returns the
ValueMap of the rendition's underlying ./jcr:content node. |
long |
getSize()
Returns the size in bytes of the rendition's binary.
|
java.io.InputStream |
getStream()
Returns the
InputStream representing the binary of this rendition. |
getChild, getChildren, getParent, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, getValueMap, hasChildren, isResourceType, listChildren
java.lang.String getMimeType()
jcr:mimeType
property.java.lang.String getName()
java.lang.String getPath()
ValueMap getProperties()
ValueMap
of the rendition's underlying ./jcr:content node.long getSize()
java.io.InputStream getStream()
InputStream
representing the binary of this rendition. Alternatively the stream can be
obtained by adapting the rendition:
... final Rendition rendition = asset.getRendition("myrendition"); final InputStream stream = rendition.adaptTo(InputStream.class); ...
null
if the binary is not found.Binary getBinary()
Binary
of this rendition.null
if the binary is not found.Copyright © 2010 - 2020 Adobe. All Rights Reserved