Interface BinaryRendition

All Superinterfaces:
Adaptable, Rendition, Resource

@ConsumerType public interface BinaryRendition extends Rendition
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.

  • Method Details

    • getBinary

      Binary getBinary()
      Returns the Binary of this rendition.
      Returns:
      The rendition's binary, or null if the binary is not found.
      Throws:
      AssetIOException - if cannot get binary