Interface BlobResourceContents

All Superinterfaces:
MetaCarrier, ResourceContents

public non-sealed interface BlobResourceContents extends MetaCarrier, ResourceContents
The content of a resource which contains binary data.
  • Method Details

    • blob

      byte[] blob()
      The binary data of the resource.
      Returns:
      the data
    • of

      static BlobResourceContents of(String uri, byte[] data)
      Creates a new BlobResourceContents with a URI and data.
      Parameters:
      uri - the resource URI
      data - the binary content
      Returns:
      the new blob resource
    • builder

      static BlobResourceContents.Builder builder(String uri, byte[] data)
      Creates a builder for a BlobResourceContents
      Parameters:
      uri - the resource URI
      data - the binary content
      Returns:
      the new blob resource builder