public static class

DrmUtils.ExtendedMetadataParser

extends Object
java.lang.Object
   ↳ android.drm.DrmUtils.ExtendedMetadataParser

Class Overview

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);
}

Summary

Public Methods
String get(String key)
Iterator<String> iterator()
Iterator<String> keyIterator()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String get (String key)

Since: API Level 11

public Iterator<String> iterator ()

Since: API Level 11

public Iterator<String> keyIterator ()

Since: API Level 11