public class DrmSupportInfo extends Object
Plug-in developers can expose the capability of their plug-in by passing an instance of this class to an application.
Constructor and Description |
---|
DrmSupportInfo() |
Modifier and Type | Method and Description |
---|---|
void |
addFileSuffix(String fileSuffix)
Adds the specified file suffix to the list of file suffixes this DRM plug-in supports.
|
void |
addMimeType(String mimeType)
Adds the specified MIME type to the list of MIME types this DRM plug-in supports.
|
boolean |
equals(Object object)
Overridden
equals implementation. |
String |
getDescriprition()
Deprecated.
The method name is mis-spelled, and it is replaced by
getDescription() . |
String |
getDescription()
Retrieves the DRM plug-in (agent) description.
|
Iterator<String> |
getFileSuffixIterator()
Retrieves an iterator object that you can use to iterate over the file suffixes that
this DRM plug-in supports.
|
Iterator<String> |
getMimeTypeIterator()
Retrieves an iterator object that you can use to iterate over the MIME types that
this DRM plug-in supports.
|
int |
hashCode()
Overridden hash code implementation.
|
void |
setDescription(String description)
Sets a description for the DRM plug-in (agent).
|
public void addMimeType(String mimeType)
mimeType
- MIME type that can be handles by this DRM plug-in.
Must not be null or an empty string.public void addFileSuffix(String fileSuffix)
fileSuffix
- 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.public Iterator<String> getMimeTypeIterator()
public Iterator<String> getFileSuffixIterator()
public void setDescription(String description)
description
- Unique description of plug-in. Must not be null
or an empty string.public String getDescriprition()
getDescription()
.public String getDescription()
setDescription(String)
, if
setDescription(String)
is not called, description returned
from this method is an empty string.public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public boolean equals(Object object)
equals
implementation. Two DrmSupportInfo objects
are considered being equal if they support exactly the same set of mime
types, file suffixes, and has exactly the same description.equals
in class Object
object
- The object to be compared.Object.hashCode()
,
HashMap