|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.media.Format
|
+--javax.media.protocol.ContentDescriptor
A ContentDescriptor identifies media data containers.
SourceStream,
Format, Serialized Form| Field Summary | |
static java.lang.String |
CONTENT_UNKNOWN
Unknown content type |
static java.lang.String |
MIXED
Mixed content type. |
static java.lang.String |
RAW
RAW content type. |
static java.lang.String |
RAW_RTP
RAW RTP content type. |
| 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)
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. |
java.lang.String |
toString()
Returns a string which describes the format parameters. |
| Methods inherited from class javax.media.Format |
clone,
copy,
equals,
getDataType,
getEncoding,
intersects,
matches,
relax |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String RAW
Buffer and carries any
format of media as specified by the format attribute
of the buffer.Buffer,
Format,
PullBufferDataSource,
PushBufferDataSourcepublic static final java.lang.String RAW_RTP
public static final java.lang.String MIXED
DataSources is merged to formed one
DataSource, the resulting DataSource
may contain mixed contents.public static final java.lang.String CONTENT_UNKNOWN
| 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 java.lang.String toString()
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||