Interface Asset
-
public interface AssetAn asset is aMediaPackageElementunder the control of theAssetManager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AvailabilitygetAvailability()Tell about the availability of the asset.org.opencastproject.util.ChecksumgetChecksum()Get the checksumAssetIdgetId()Return the identifier of the asset.InputStreamgetInputStream()Return a stream to the asset data.com.entwinemedia.fn.data.Opt<org.opencastproject.util.MimeType>getMimeType()Mime type of the asset.longgetSize()Size of the asset in bytes.StringgetStorageId()Get the store ID of the asset store where this snapshot currently lives
-
-
-
Method Detail
-
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
com.entwinemedia.fn.data.Opt<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
-
-