Copyright 2002 Sun Microsystems, Inc.; Nokia Corporation. See the Copyright Notice and Specification License for more details.

javax.microedition.media.protocol
Class ContentDescriptor

java.lang.Object
  |
  +--javax.microedition.media.protocol.ContentDescriptor

public class ContentDescriptor
extends java.lang.Object

A ContentDescriptor identifies media data containers.

See Also:
SourceStream

Constructor Summary
ContentDescriptor(java.lang.String contentType)
          Create a content descriptor with the specified content type.
 
Method Summary
 java.lang.String getContentType()
          Obtain a string that represents the content type for this descriptor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentDescriptor

public ContentDescriptor(java.lang.String contentType)
Create a content descriptor with the specified content type.
Parameters:
contentType - The content type of this descriptor. If contentType is null, the type of the content is unknown.
Method Detail

getContentType

public java.lang.String getContentType()
Obtain a string that represents the content type for this descriptor. If the content type is not known, null is returned.
Returns:
The content type.


Copyright 2002 Sun Microsystems, Inc.; Nokia Corporation. See the Copyright Notice and Specification License for more details.