javax.media.protocol
Class FileTypeDescriptor

java.lang.Object
  |
  +--javax.media.Format
        |
        +--javax.media.protocol.ContentDescriptor
              |
              +--javax.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.

See Also:
Serialized Form

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

QUICKTIME

public static final java.lang.String QUICKTIME
Quicktime content type

MSVIDEO

public static final java.lang.String MSVIDEO
AVI content type

MPEG

public static final java.lang.String MPEG
MPEG video and system stream content type

VIVO

public static final java.lang.String VIVO
VIVO content type

BASIC_AUDIO

public static final java.lang.String BASIC_AUDIO
Basic Audio (.au) content type

WAVE

public static final java.lang.String WAVE
WAV content type

AIFF

public static final java.lang.String AIFF
AIFF content type

MIDI

public static final java.lang.String MIDI
MIDI content type

RMF

public static final java.lang.String RMF
RMF content type

GSM

public static final java.lang.String GSM
GSM content type

MPEG_AUDIO

public static final java.lang.String MPEG_AUDIO
MPEG audio stream content type
Constructor Detail

FileTypeDescriptor

public FileTypeDescriptor(java.lang.String contentType)
Constructs a FileTypeDescriptor object for the specified content type string.
Method Detail

toString

public java.lang.String toString()
Description copied from class: ContentDescriptor
Returns a string which describes the format parameters.
Overrides:
toString in class ContentDescriptor
Tags copied from class: ContentDescriptor
Returns:
a string which describes the format parameters.


Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.