javax.media
Class Buffer

java.lang.Object
  extended by javax.media.Buffer

public class Buffer
extends java.lang.Object

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

Author:
Ken Larson

Field Summary
protected  java.lang.Object data
           
protected  long duration
           
static int FLAG_BUF_OVERFLOWN
           
static int FLAG_BUF_UNDERFLOWN
           
static int FLAG_DISCARD
           
static int FLAG_EOM
           
static int FLAG_FLUSH
           
static int FLAG_KEY_FRAME
           
static int FLAG_LIVE_DATA
           
static int FLAG_NO_DROP
           
static int FLAG_NO_SYNC
           
static int FLAG_NO_WAIT
           
static int FLAG_RELATIVE_TIME
           
static int FLAG_RTP_MARKER
           
static int FLAG_RTP_TIME
           
static int FLAG_SID
           
static int FLAG_SILENCE
           
static int FLAG_SYSTEM_MARKER
           
static int FLAG_SYSTEM_TIME
           
protected  int flags
           
protected  Format format
           
protected  java.lang.Object header
           
protected  int length
           
protected  int offset
           
static long SEQUENCE_UNKNOWN
           
protected  long sequenceNumber
           
static long TIME_UNKNOWN
           
protected  long timeStamp
           
 
Constructor Summary
Buffer()
           
 
Method Summary
 java.lang.Object clone()
           
 void copy(Buffer buffer)
           
 void copy(Buffer buffer, boolean swapData)
           
 java.lang.Object getData()
           
 long getDuration()
           
 int getFlags()
           
 Format getFormat()
           
 java.lang.Object getHeader()
           
 int getLength()
           
 int getOffset()
           
 long getSequenceNumber()
           
 long getTimeStamp()
           
 boolean isDiscard()
           
 boolean isEOM()
           
 void setData(java.lang.Object data)
           
 void setDiscard(boolean discard)
           
 void setDuration(long duration)
           
 void setEOM(boolean eom)
           
 void setFlags(int flags)
           
 void setFormat(Format format)
           
 void setHeader(java.lang.Object header)
           
 void setLength(int length)
           
 void setOffset(int offset)
           
 void setSequenceNumber(long number)
           
 void setTimeStamp(long timeStamp)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeStamp

protected long timeStamp

duration

protected long duration

format

protected Format format

flags

protected int flags

data

protected java.lang.Object data

header

protected java.lang.Object header

length

protected int length

offset

protected int offset

sequenceNumber

protected long sequenceNumber

FLAG_EOM

public static final int FLAG_EOM
See Also:
Constant Field Values

FLAG_DISCARD

public static final int FLAG_DISCARD
See Also:
Constant Field Values

FLAG_SILENCE

public static final int FLAG_SILENCE
See Also:
Constant Field Values

FLAG_SID

public static final int FLAG_SID
See Also:
Constant Field Values

FLAG_KEY_FRAME

public static final int FLAG_KEY_FRAME
See Also:
Constant Field Values

FLAG_NO_DROP

public static final int FLAG_NO_DROP
See Also:
Constant Field Values

FLAG_NO_WAIT

public static final int FLAG_NO_WAIT
See Also:
Constant Field Values

FLAG_NO_SYNC

public static final int FLAG_NO_SYNC
See Also:
Constant Field Values

FLAG_SYSTEM_TIME

public static final int FLAG_SYSTEM_TIME
See Also:
Constant Field Values

FLAG_RELATIVE_TIME

public static final int FLAG_RELATIVE_TIME
See Also:
Constant Field Values

FLAG_FLUSH

public static final int FLAG_FLUSH
See Also:
Constant Field Values

FLAG_SYSTEM_MARKER

public static final int FLAG_SYSTEM_MARKER
See Also:
Constant Field Values

FLAG_RTP_MARKER

public static final int FLAG_RTP_MARKER
See Also:
Constant Field Values

FLAG_RTP_TIME

public static final int FLAG_RTP_TIME
See Also:
Constant Field Values

FLAG_BUF_OVERFLOWN

public static final int FLAG_BUF_OVERFLOWN
See Also:
Constant Field Values

FLAG_BUF_UNDERFLOWN

public static final int FLAG_BUF_UNDERFLOWN
See Also:
Constant Field Values

FLAG_LIVE_DATA

public static final int FLAG_LIVE_DATA
See Also:
Constant Field Values

TIME_UNKNOWN

public static final long TIME_UNKNOWN
See Also:
Constant Field Values

SEQUENCE_UNKNOWN

public static final long SEQUENCE_UNKNOWN
See Also:
Constant Field Values
Constructor Detail

Buffer

public Buffer()
Method Detail

getFormat

public Format getFormat()

setFormat

public void setFormat(Format format)

getFlags

public int getFlags()

setFlags

public void setFlags(int flags)

isEOM

public boolean isEOM()

setEOM

public void setEOM(boolean eom)

isDiscard

public boolean isDiscard()

setDiscard

public void setDiscard(boolean discard)

getData

public java.lang.Object getData()

setData

public void setData(java.lang.Object data)

getHeader

public java.lang.Object getHeader()

setHeader

public void setHeader(java.lang.Object header)

getLength

public int getLength()

setLength

public void setLength(int length)

getOffset

public int getOffset()

setOffset

public void setOffset(int offset)

getTimeStamp

public long getTimeStamp()

setTimeStamp

public void setTimeStamp(long timeStamp)

getDuration

public long getDuration()

setDuration

public void setDuration(long duration)

setSequenceNumber

public void setSequenceNumber(long number)

getSequenceNumber

public long getSequenceNumber()

copy

public void copy(Buffer buffer)

copy

public void copy(Buffer buffer,
                 boolean swapData)

clone

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