|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.FSVideoObject
public abstract class FSVideoObject
The FSVideoObject is the root class for objects that represent each of the tagged data structures that make up the Flash Video file format specification. Each of the major data structures defined in the Flash file format specification start with a header that contains the type identifying the data structure followed by the number of bytes that the body of the encoded data structure occupies in the file. The FSVideoObject manages the encoding and decoding of this information. This class is primarily used internally in the library however the getType() method is useful when manipulating decoded video files. Rather than using the runtime type checking provided in the Java environment the method can be used to identify the class, derived from FSVideoObject, that represents each data structure, improving performance.
Field Summary | |
---|---|
static int |
AudioData
Type identifying objects containing sound |
protected int |
length
|
static int |
MetaData
Type identifying objects containing meta-data |
protected int |
timestamp
|
protected int |
type
|
static int |
VideoData
Type identifying objects containing video |
Constructor Summary | |
---|---|
FSVideoObject(int type,
int timestamp)
Constructs a movie object with the specified type. |
Method Summary | |
---|---|
void |
appendDescription(java.lang.StringBuffer buffer,
int depth)
|
java.lang.Object |
clone()
Creates a deep copy of the entire object. |
boolean |
equals(java.lang.Object anObject)
|
int |
getTimestamp()
Gets the timestamp, in milliseconds, relative to the start of the file, when the audio or video will be played. |
int |
getType()
Gets the code used that identifies the type of the object when it is encoded. |
java.lang.String |
name()
Return the name of the class without the package prefix. |
void |
setTimestamp(int time)
Sets the timestamp, in milliseconds, relative to the start of the file, when the audio or video will be played. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AudioData
public static final int VideoData
public static final int MetaData
protected int type
protected int length
protected int timestamp
Constructor Detail |
---|
public FSVideoObject(int type, int timestamp)
type
- an identifier indicating the type of movie object.timestamp
- the time in milliseconds at which the data should be played.Method Detail |
---|
public int getType()
public int getTimestamp()
public void setTimestamp(int time)
time
- the time in milliseconds relative to the start of the file.public boolean equals(java.lang.Object anObject)
equals
in class java.lang.Object
public java.lang.String name()
public java.lang.Object clone()
clone
in class java.lang.Object
public void appendDescription(java.lang.StringBuffer buffer, int depth)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |