public class ContentDescriptor extends Object
ContentDescriptor identifies media data containers.SourceStream| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_UNKNOWN |
protected String |
typeName |
| Constructor and Description |
|---|
ContentDescriptor(String cdName)
Create a content descriptor with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String CONTENT_UNKNOWN
protected String typeName
public ContentDescriptor(String cdName)
To create a ContentDescriptor from a MIME type, use
the mimeTypeToPackageName static member.
cdName - The name of the content-type.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.Copyright © 2012 code4tv.com. All Rights Reserved.