Interface Asset
- All Known Implementing Classes:
AssetImpl
public interface Asset
An asset is a
MediaPackageElement
under the control of the AssetManager.-
Method Summary
Modifier and TypeMethodDescriptionTell about the availability of the asset.Get the checksumgetId()Return the identifier of the asset.Return a stream to the asset data.Mime type of the asset.longgetSize()Size of the asset in bytes.Get the store ID of the asset store where this snapshot currently lives
-
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
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
Checksum getChecksum()Get the checksum
-