Package com.adobe.granite.asset.api
Interface BinaryRendition
-
@ConsumerType public interface BinaryRendition extends Rendition
BinaryRenditionis 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 renditionResourceto aBinaryRenditiontype.
-
-
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 javax.jcr.BinarygetBinary()Returns theBinaryof 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
javax.jcr.Binary getBinary()
Returns theBinaryof this rendition.- Returns:
- The rendition's binary, or
nullif the binary is not found. - Throws:
AssetIOException- if cannot get binary
-
-