Package com.adobe.granite.asset.api
Interface BinaryRendition
BinaryRendition is a read only representation of a particular rendition of an Asset.
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 via Asset.getRendition(String) or by adapting a rendition Resource
to a BinaryRendition type.
-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Method Summary
Methods inherited from interface com.adobe.granite.asset.api.Rendition
getMimeType, getSize, getStreamMethods inherited from interface org.apache.sling.api.resource.Resource
getChild, getChildren, getName, getParent, getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, getValueMap, hasChildren, isResourceType, listChildren
-
Method Details
-
getBinary
Binary getBinary()Returns theBinaryof this rendition.- Returns:
- The rendition's binary, or
nullif the binary is not found. - Throws:
AssetIOException- if cannot get binary
-