Package com.adobe.granite.asset.api
Interface BinaryRendition
-
@ConsumerType public interface BinaryRendition extends Rendition
BinaryRendition
is a read only representation of a particular rendition of anAsset
.BinaryRendition is an extension of a Rendition which is an extension of a Sling Resource, therefore its adaptable.
BinaryRendition is created by
Asset.setRendition(String, Binary, java.util.Map)
and can be retrieved either viaAsset.getRendition(String)
or by adapting a renditionResource
to aBinaryRendition
type.
-
-
Field Summary
-
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Binary
getBinary()
Returns theBinary
of this rendition.-
Methods inherited from interface com.adobe.granite.asset.api.Rendition
getMimeType, getSize, getStream
-
Methods inherited from interface org.apache.sling.api.resource.Resource
getChild, getChildren, getName, getParent, getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, getValueMap, hasChildren, isResourceType, listChildren
-
-
-
-
Method Detail
-
getBinary
Binary getBinary()
Returns theBinary
of this rendition.- Returns:
- The rendition's binary, or
null
if the binary is not found. - Throws:
AssetIOException
- if cannot get binary
-
-