|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.protocol.ContentDescriptor
public class ContentDescriptor
A ContentDescriptor identifies media data containers.
SourceStream| Field Summary | |
|---|---|
static String |
CONTENT_UNKNOWN
|
protected String |
typeName
|
| Constructor Summary | |
|---|---|
ContentDescriptor(String cdName)
Create a content descriptor with the specified name. |
|
| Method Summary | |
|---|---|
String |
getContentType()
Obtain a string that represents the content-name for this descriptor. |
static String |
mimeTypeToPackageName(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 String CONTENT_UNKNOWN
protected String typeName
| Constructor Detail |
|---|
public ContentDescriptor(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 String getContentType()
public static final String mimeTypeToPackageName(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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||