javax.media.protocol
Class ContentDescriptor

java.lang.Object
  extended by javax.media.Format
      extended by javax.media.protocol.ContentDescriptor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
FileTypeDescriptor

public class ContentDescriptor
extends Format

Standard JMF class -- see this class in the JMF Javadoc. Complete

Author:
Ken Larson
See Also:
Serialized Form

Field Summary
static java.lang.String CONTENT_UNKNOWN
           
static java.lang.String MIXED
           
static java.lang.String RAW
           
static java.lang.String RAW_RTP
           
 
Fields inherited from class javax.media.Format
byteArray, clz, dataType, encoding, FALSE, formatArray, intArray, NOT_SPECIFIED, shortArray, TRUE
 
Constructor Summary
ContentDescriptor(java.lang.String cdName)
           
 
Method Summary
 java.lang.String getContentType()
           
static java.lang.String mimeTypeToPackageName(java.lang.String mimeType)
          Convert to package name.
 java.lang.String toString()
           
 
Methods inherited from class javax.media.Format
clone, copy, equals, getDataType, getEncoding, intersects, isSameEncoding, isSameEncoding, matches, relax
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RAW

public static final java.lang.String RAW
See Also:
Constant Field Values

RAW_RTP

public static final java.lang.String RAW_RTP
See Also:
Constant Field Values

MIXED

public static final java.lang.String MIXED
See Also:
Constant Field Values

CONTENT_UNKNOWN

public static final java.lang.String CONTENT_UNKNOWN
See Also:
Constant Field Values
Constructor Detail

ContentDescriptor

public ContentDescriptor(java.lang.String cdName)
Method Detail

getContentType

public java.lang.String getContentType()

toString

public java.lang.String toString()
Overrides:
toString in class Format

mimeTypeToPackageName

public static final java.lang.String mimeTypeToPackageName(java.lang.String mimeType)
Convert to package name. a-z -> a-z 0-9 -> 0->9 A-Z -> a-z / -> . . -> . everything else -> _