|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.media.protocol.ContentDescriptor
A ContentDescriptor
identifies media data containers.
SourceStream
Field Summary | |
static java.lang.String |
CONTENT_UNKNOWN
|
protected java.lang.String |
typeName
|
Constructor Summary | |
ContentDescriptor(java.lang.String cdName)
Create a content descriptor with the specified name. |
Method Summary | |
java.lang.String |
getContentType()
Obtain a string that represents the content-name for this descriptor. |
static java.lang.String |
mimeTypeToPackageName(java.lang.String mimeType)
Map a MIME content-type to an equivalent string of class-name components. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONTENT_UNKNOWN
protected java.lang.String typeName
Constructor Detail |
public ContentDescriptor(java.lang.String cdName)
To create a ContentDescriptor
from a MIME type, use
the mimeTypeToPackageName
static member.
cdName
- The name of the content-type.Method Detail |
public java.lang.String getContentType()
public static final java.lang.String mimeTypeToPackageName(java.lang.String mimeType)
The MIME type is mapped to a string by:
For example, "text/html" would be converted to "text.html"
mimeType
- The MIME type to map to a string.
|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |