public class DrmSupportInfo
extends Object
| java.lang.Object | |
| android.drm.DrmSupportInfo | |
包装每个DRM插件(代理)功能的实体类,例如DRM插件的MIME类型和文件后缀可以处理。
插件开发人员可以通过将此类的实例传递给应用程序来公开其插件的功能。
Public constructors |
|
|---|---|
DrmSupportInfo() |
|
公共方法(Public methods) |
|
|---|---|
void |
addFileSuffix(String fileSuffix) 将指定的文件后缀添加到此DRM插件支持的文件后缀列表中。 |
void |
addMimeType(String mimeType) 将指定的MIME类型添加到此DRM插件支持的MIME类型列表中。 |
boolean |
equals(Object object) 重写 |
String |
getDescriprition() 此方法在API级别16中已被弃用。方法名称拼写错误,并且被替换为 |
String |
getDescription() 检索DRM插件(代理)说明。 |
Iterator<String> |
getFileSuffixIterator() 检索可用于遍历此DRM插件支持的文件后缀的迭代器对象。 |
Iterator<String> |
getMimeTypeIterator() 检索可用于遍历此DRM插件支持的MIME类型的迭代器对象。 |
int |
hashCode() 重写的哈希码实现。 |
void |
setDescription(String description) 设置DRM插件(代理)的描述。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
void addFileSuffix (String fileSuffix)
将指定的文件后缀添加到此DRM插件支持的文件后缀列表中。
| 参数(Parameters) | |
|---|---|
fileSuffix |
String: File suffix that can be handled by this DRM plug-in. it could be null but not an empty string. When it is null, it indicates that some DRM content comes with no file suffix. |
void addMimeType (String mimeType)
将指定的MIME类型添加到此DRM插件支持的MIME类型列表中。
| 参数(Parameters) | |
|---|---|
mimeType |
String: MIME type that can be handles by this DRM plug-in. Must not be null or an empty string. |
boolean equals (Object object)
重写equals实现。 如果两个DrmSupportInfo对象支持完全相同的MIME类型集合,文件后缀并且具有完全相同的描述,则认为它们相同。
| 参数(Parameters) | |
|---|---|
object |
Object: The object to be compared. |
| 返回(Returns) | |
|---|---|
boolean |
True if equal; false if not equal. |
String getDescriprition ()
此方法在API级别16中已被弃用。
方法名称拼写错误,它被替换为getDescription() 。
检索DRM插件(代理)说明。
| 返回(Returns) | |
|---|---|
String |
The plug-in description. |
String getDescription ()
检索DRM插件(代理)说明。 即使空或空字符串中不允许setDescription(String) ,如果setDescription(String)不叫,此方法返回的描述是一个空字符串。
| 返回(Returns) | |
|---|---|
String |
The plug-in description. |
Iterator<String> getFileSuffixIterator ()
检索可用于遍历此DRM插件支持的文件后缀的迭代器对象。
| 返回(Returns) | |
|---|---|
Iterator<String> |
The iterator object. |
Iterator<String> getMimeTypeIterator ()
检索可用于遍历此DRM插件支持的MIME类型的迭代器对象。
| 返回(Returns) | |
|---|---|
Iterator<String> |
The iterator object |
void setDescription (String description)
设置DRM插件(代理)的描述。
| 参数(Parameters) | |
|---|---|
description |
String: Unique description of plug-in. Must not be null or an empty string. |