java.lang.Object | |
↳ | android.drm.DrmUtils.ExtendedMetadataParser |
Utility that parses extended metadata embedded in DRM constraint information.
Usage example:
byte[] extendedMetadata
=
constraints.getAsByteArray(DrmStore.ConstraintsColumns.EXTENDED_METADATA);
ExtendedMetadataParser parser = getExtendedMetadataParser(extendedMetadata);
Iterator keyIterator = parser.keyIterator();
while (keyIterator.hasNext()) {
String extendedMetadataKey = keyIterator.next();
String extendedMetadataValue =
parser.get(extendedMetadataKey);
}
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method retrieves the metadata value associated with a given key.
| |||||||||||
This method returns an iterator object that can be used to iterate over
all values of the metadata.
| |||||||||||
This method returns an iterator object that can be used to iterate over
all keys of the metadata.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This method retrieves the metadata value associated with a given key.
key | The key whose value is being retrieved. |
---|
This method returns an iterator object that can be used to iterate over all values of the metadata.
This method returns an iterator object that can be used to iterate over all keys of the metadata.