Interface Asset


public interface Asset
An asset is a MediaPackageElement under the control of the AssetManager.
  • Method Details

    • getId

      AssetId getId()
      Return the identifier of the asset.
    • getInputStream

      InputStream getInputStream()
      Return a stream to the asset data. A client is responsible of closing the stream after consumption. Use the try with resource construct which is available from Java 7 onwards if possible.

      If the asset is currently not available an empty input stream is returned.

    • getMimeType

      Optional<org.opencastproject.util.MimeType> getMimeType()
      Mime type of the asset.
    • getSize

      long getSize()
      Size of the asset in bytes.
    • getAvailability

      Availability getAvailability()
      Tell about the availability of the asset.
    • getStorageId

      String getStorageId()
      Get the store ID of the asset store where this snapshot currently lives
    • getChecksum

      org.opencastproject.util.Checksum getChecksum()
      Get the checksum