FileDocCategorySizeDatePackage
FileTypeDescriptor.javaAPI DocJMF 2.1.1e2595Mon May 12 12:20:42 BST 2003javax.media.protocol

FileTypeDescriptor

public class FileTypeDescriptor extends ContentDescriptor
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.

Fields Summary
public static final String
QUICKTIME
Quicktime content type
public static final String
MSVIDEO
AVI content type
public static final String
MPEG
MPEG video and system stream content type
public static final String
VIVO
VIVO content type
public static final String
BASIC_AUDIO
Basic Audio (.au) content type
public static final String
WAVE
WAV content type
public static final String
AIFF
AIFF content type
public static final String
MIDI
MIDI content type
public static final String
RMF
RMF content type
public static final String
GSM
GSM content type
public static final String
MPEG_AUDIO
MPEG audio stream content type
Constructors Summary
public FileTypeDescriptor(String contentType)
Constructs a FileTypeDescriptor object for the specified content type string.


                   
       
	super(contentType);
    
Methods Summary
public java.lang.StringtoString()

	if (encoding.equalsIgnoreCase(QUICKTIME))
	    return "QuickTime";
	else if (encoding.equalsIgnoreCase(MSVIDEO))
	    return "AVI";
	else if (encoding.equalsIgnoreCase(MPEG))
	    return "MPEG Video";
	else if (encoding.equalsIgnoreCase(VIVO))
	    return "Vivo";
	else if (encoding.equalsIgnoreCase(BASIC_AUDIO))
	    return "Basic Audio (au)";
	else if (encoding.equalsIgnoreCase(WAVE))
	    return "WAV";
	else if (encoding.equalsIgnoreCase(AIFF))
	    return "AIFF";
	else if (encoding.equalsIgnoreCase(MIDI))
	    return "MIDI";
	else if (encoding.equalsIgnoreCase(RMF))
	    return "RMF";
	else if (encoding.equalsIgnoreCase(GSM))
	    return "GSM";
	else if (encoding.equalsIgnoreCase(MPEG_AUDIO))
	    return "MPEG Audio";
	else
	    return encoding;