Class Overview
An entity class that wraps the capability of each DRM plug-in (agent),
such as the MIME type and file suffix the DRM plug-in can handle.
Plug-in developers can expose the capability of their plug-in by passing an instance of this
class to an application.
Summary
Public Methods |
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()
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).
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Constructors
Public Methods
public
void
addFileSuffix
(String fileSuffix)
Adds the specified file suffix to the list of file suffixes this DRM plug-in supports.
Parameters
fileSuffix
| File suffix that can be handled by this DRM plug-in.
|
public
void
addMimeType
(String mimeType)
Adds the specified MIME type to the list of MIME types this DRM plug-in supports.
Parameters
mimeType
| MIME type that can be handles by this DRM plug-in.
|
public
boolean
equals
(Object object)
Overridden equals
implementation.
Parameters
object
| The object to be compared. |
Returns
- True if equal; false if not equal.
public
String
getDescriprition
()
Retrieves the DRM plug-in (agent) description.
public
Iterator<String>
getFileSuffixIterator
()
Retrieves an iterator object that you can use to iterate over the file suffixes that
this DRM plug-in supports.
public
Iterator<String>
getMimeTypeIterator
()
Retrieves an iterator object that you can use to iterate over the MIME types that
this DRM plug-in supports.
public
int
hashCode
()
Overridden hash code implementation.
public
void
setDescription
(String description)
Sets a description for the DRM plug-in (agent).
Parameters
description
| Unique description of plug-in.
|