org.red5.server.net.rtmp.message
Class Header

java.lang.Object
  extended by org.red5.server.net.rtmp.message.Header
All Implemented Interfaces:
Externalizable, Serializable, Constants

public class Header
extends Object
implements Constants, Externalizable

RTMP packet header

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.red5.server.net.rtmp.message.Constants
ACTION_CLOSE_STREAM, ACTION_CONNECT, ACTION_CREATE_STREAM, ACTION_DELETE_STREAM, ACTION_DISCONNECT, ACTION_PAUSE, ACTION_PAUSE_RAW, ACTION_PLAY, ACTION_PUBLISH, ACTION_RECEIVE_AUDIO, ACTION_RECEIVE_VIDEO, ACTION_RELEASE_STREAM, ACTION_SEEK, ACTION_STOP, HANDSHAKE_SIZE, HEADER_CONTINUE, HEADER_NEW, HEADER_SAME_SOURCE, HEADER_TIMER_CHANGE, MEDIUM_INT_MAX, SO_CLIENT_CLEAR_DATA, SO_CLIENT_DELETE_DATA, SO_CLIENT_INITIAL_DATA, SO_CLIENT_SEND_MESSAGE, SO_CLIENT_STATUS, SO_CLIENT_UPDATE_ATTRIBUTE, SO_CLIENT_UPDATE_DATA, SO_CONNECT, SO_DELETE_ATTRIBUTE, SO_DISCONNECT, SO_SEND_MESSAGE, SO_SET_ATTRIBUTE, TYPE_AUDIO_DATA, TYPE_BYTES_READ, TYPE_CHUNK_SIZE, TYPE_CLIENT_BANDWIDTH, TYPE_FLEX_MESSAGE, TYPE_FLEX_SHARED_OBJECT, TYPE_FLEX_STREAM_SEND, TYPE_INVOKE, TYPE_NOTIFY, TYPE_PING, TYPE_SERVER_BANDWIDTH, TYPE_SHARED_OBJECT, TYPE_STREAM_METADATA, TYPE_VIDEO_DATA
 
Constructor Summary
Header()
           
 
Method Summary
 Object clone()
          
 boolean equals(Object other)
          
 int getChannelId()
          Getter for channel id
 byte getDataType()
          Getter for data type
 int getSize()
          Getter for size.
 int getStreamId()
          Getter for stream id
 int getTimer()
          Getter for timer
 boolean isTimerRelative()
          Getter for timer relative flag
 void readExternal(ObjectInput in)
           
 void setChannelId(int channelId)
          Setter for channel id
 void setDataType(byte dataType)
          Setter for data type
 void setSize(int size)
          Setter for size
 void setStreamId(int streamId)
          Setter for stream id
 void setTimer(int timer)
          Setter for timer
 void setTimerRelative(boolean timerRelative)
          Setter for timer relative flag
 String toString()
          
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Header

public Header()
Method Detail

getChannelId

public int getChannelId()
Getter for channel id

Returns:
Channel id

setChannelId

public void setChannelId(int channelId)
Setter for channel id

Parameters:
channelId - Header channel id

getDataType

public byte getDataType()
Getter for data type

Returns:
Data type

setDataType

public void setDataType(byte dataType)
Setter for data type

Parameters:
dataType - Data type

getSize

public int getSize()
Getter for size.

Returns:
Header size

setSize

public void setSize(int size)
Setter for size

Parameters:
size - Header size

getStreamId

public int getStreamId()
Getter for stream id

Returns:
Stream id

setStreamId

public void setStreamId(int streamId)
Setter for stream id

Parameters:
streamId - Stream id

getTimer

public int getTimer()
Getter for timer

Returns:
Timer

setTimer

public void setTimer(int timer)
Setter for timer

Parameters:
timer - Timer

isTimerRelative

public boolean isTimerRelative()
Getter for timer relative flag

Returns:
true if timer value is relative, false otherwise

setTimerRelative

public void setTimerRelative(boolean timerRelative)
Setter for timer relative flag

Parameters:
timerRelative - true if timer values are relative, false otherwise

equals

public boolean equals(Object other)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object

clone

public Object clone()

Overrides:
clone in class Object

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException


Copyright © 2006-2009 The Red5 Project