javax.media
Class Format

java.lang.Object
  extended by javax.media.Format
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
AudioFormat, ContentDescriptor, VideoFormat

public class Format
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Standard JMF class -- see this class in the JMF Javadoc. Coding complete.

Author:
Ken Larson
See Also:
Serialized Form

Field Summary
static java.lang.Class byteArray
           
protected  java.lang.Class clz
           
protected  java.lang.Class dataType
           
protected  java.lang.String encoding
           
static int FALSE
           
static java.lang.Class formatArray
           
static java.lang.Class intArray
           
static int NOT_SPECIFIED
           
static java.lang.Class shortArray
           
static int TRUE
           
 
Constructor Summary
Format(java.lang.String encoding)
           
Format(java.lang.String encoding, java.lang.Class dataType)
           
 
Method Summary
 java.lang.Object clone()
           
protected  void copy(Format f)
           
 boolean equals(java.lang.Object format)
           
 java.lang.Class getDataType()
           
 java.lang.String getEncoding()
           
 Format intersects(Format other)
           
 boolean isSameEncoding(Format other)
           
 boolean isSameEncoding(java.lang.String encoding)
           
 boolean matches(Format format)
           
 Format relax()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_SPECIFIED

public static final int NOT_SPECIFIED
See Also:
Constant Field Values

TRUE

public static final int TRUE
See Also:
Constant Field Values

FALSE

public static final int FALSE
See Also:
Constant Field Values

encoding

protected java.lang.String encoding

byteArray

public static final java.lang.Class byteArray

shortArray

public static final java.lang.Class shortArray

intArray

public static final java.lang.Class intArray

formatArray

public static final java.lang.Class formatArray

dataType

protected java.lang.Class dataType

clz

protected java.lang.Class clz
Constructor Detail

Format

public Format(java.lang.String encoding)

Format

public Format(java.lang.String encoding,
              java.lang.Class dataType)
Method Detail

getEncoding

public java.lang.String getEncoding()

getDataType

public java.lang.Class getDataType()

equals

public boolean equals(java.lang.Object format)
Overrides:
equals in class java.lang.Object

matches

public boolean matches(Format format)

intersects

public Format intersects(Format other)

isSameEncoding

public boolean isSameEncoding(Format other)

isSameEncoding

public boolean isSameEncoding(java.lang.String encoding)

relax

public Format relax()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

copy

protected void copy(Format f)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object