|
|||||||||
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 | +--javax.media.protocol.FileTypeDescriptor
This sub-class of ContentDescriptor enumerates those content descriptors that are file formats. That is, data of this content type can be saved to a file. It helps differentiate from content types that are not file formats.
When a Processor advertises a set of supported content descriptors, you can check if it's a FileTypeDescriptor before trying to save the stream to a file.
Field Summary | |
static java.lang.String |
AIFF
AIFF content type |
static java.lang.String |
BASIC_AUDIO
Basic Audio (.au) content type |
static java.lang.String |
GSM
GSM content type |
static java.lang.String |
MIDI
MIDI content type |
static java.lang.String |
MPEG
MPEG video and system stream content type |
static java.lang.String |
MPEG_AUDIO
MPEG audio stream content type |
static java.lang.String |
MSVIDEO
AVI content type |
static java.lang.String |
QUICKTIME
Quicktime content type |
static java.lang.String |
RMF
RMF content type |
static java.lang.String |
VIVO
VIVO content type |
static java.lang.String |
WAVE
WAV content type |
Fields inherited from class javax.media.protocol.ContentDescriptor |
CONTENT_UNKNOWN,
MIXED,
RAW,
RAW_RTP |
Fields inherited from class javax.media.Format |
byteArray,
clz,
dataType,
encoding,
FALSE,
formatArray,
intArray,
NOT_SPECIFIED,
shortArray,
TRUE |
Constructor Summary | |
FileTypeDescriptor(java.lang.String contentType)
Constructs a FileTypeDescriptor object for the specified content type string. |
Method Summary | |
java.lang.String |
toString()
Returns a string which describes the format parameters. |
Methods inherited from class javax.media.protocol.ContentDescriptor |
getContentType,
mimeTypeToPackageName |
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 |
public static final java.lang.String QUICKTIME
public static final java.lang.String MSVIDEO
public static final java.lang.String MPEG
public static final java.lang.String VIVO
public static final java.lang.String BASIC_AUDIO
public static final java.lang.String WAVE
public static final java.lang.String AIFF
public static final java.lang.String MIDI
public static final java.lang.String RMF
public static final java.lang.String GSM
public static final java.lang.String MPEG_AUDIO
Constructor Detail |
public FileTypeDescriptor(java.lang.String contentType)
Method Detail |
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |