All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.movies.media.GenericMedia

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.std.movies.media.Media
                   |
                   +----quicktime.std.movies.media.GenericMedia

public class GenericMedia
extends Media
The GenericMedia class provides a base from which to construct media classes that represent media types that are unknown to the standard QT distribution. The subclasses would define a public constructors that call their collorary superclass constructors, but internally passing on the media type, as by definition the media type is encapsulated by the particular subclass and does not need to be provided by the user.

The fromType call in the Media class will return an appropriate object of a type that corresponds with the mediaType if the application has made this association known to the GenericMedia class. An application does this by calling the addMediaType method with the mediaType and full class name of the associated class. If a media type is encountered within a QT movie that is unknown at runtime then it will return an instance of GenericMedia. This has no defined public calls (except the getMediaType call) but enables general calls that can be done on any media type.

You can only subclass GenericMedia by defining your class to be in the same package as the GenericMedia class.


Method Index

 o getMediaType()
Returns the type of media that this Media object represets.

Methods

 o getMediaType
 public final int getMediaType()
Returns the type of media that this Media object represets.


All Packages  Class Hierarchy  This Package  Previous  Next  Index