BenQ Mobile

javax.microedition.media.protocol
Class ContentDescriptor

java.lang.Object
  extended byjavax.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
clone, equals, finalize, 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.

BenQ Mobile

Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner.
All Rights Reserved.
BenQ Corp. is a trademark licensee of Siemens AG.


For further information about Mobility Toolkit (MTK) visit our Developer Portal.