@ProviderType
public interface AdaptiveMedia<T>
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
Returns an
InputStream with the raw contents of this AdaptiveMedia instance. |
java.net.URI |
getURI()
Returns the URI of this
AdaptiveMedia instance. |
<V> java.util.Optional<V> |
getValueOptional(AMAttribute<T,V> amAttribute)
Returns the value of this
AdaptiveMedia instance's attribute. |
java.io.InputStream getInputStream()
InputStream
with the raw contents of this AdaptiveMedia
instance.InputStream
with the raw contents of this AdaptiveMedia
instancejava.net.URI getURI()
AdaptiveMedia
instance. The URI can be
used by other parts of the system to uniquely identify each AdaptiveMedia
instance. This URI should be treated as an opaque value.AdaptiveMedia
instance<V> java.util.Optional<V> getValueOptional(AMAttribute<T,V> amAttribute)
AdaptiveMedia
instance's attribute.
This method always returns a non-null
optional.amAttribute
- the adaptive media attributeOptional
. If no value
exists, an Optional.EMPTY
is returned.