edu.virginia.cs.mng.hypercast
Class Extension

java.lang.Object
  |
  +--edu.virginia.cs.mng.hypercast.Extension

class Extension
extends java.lang.Object

This class defines the OL_Message extension header. It contains all the functions needed to maintain the Extension header.


Field Summary
private  byte Header
          Extension header (8 bits)
private  byte[] Payload
          payload bytes array
private  int PayloadLength
          the payload length (2 bytes)
 
Constructor Summary
(package private) Extension()
          Constructs an empty Extension header
(package private) Extension(byte header, byte[] payload, int payloadlength)
          Constructs an Extension header object with all the parameters
(package private) Extension(Extension e)
          Construcs an Extension header from an existing one
 
Method Summary
(package private)  int getADUPayloadLength()
          Returns the payload length
(package private)  byte getHeader()
          Returns the extension header
(package private)  byte[] getPayload()
          Returns the payload
(package private)  void setADUPayloadLength(int length)
          Sets the payload length
(package private)  void setHeader(byte head)
          Sets the extension hearder
(package private)  void setPayload(byte[] payload)
          Sets the payload
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Header

private byte Header
Extension header (8 bits)

PayloadLength

private int PayloadLength
the payload length (2 bytes)

Payload

private byte[] Payload
payload bytes array
Constructor Detail

Extension

Extension(byte header,
          byte[] payload,
          int payloadlength)
Constructs an Extension header object with all the parameters

Extension

Extension(Extension e)
Construcs an Extension header from an existing one

Extension

Extension()
Constructs an empty Extension header
Method Detail

getHeader

byte getHeader()
Returns the extension header

getADUPayloadLength

int getADUPayloadLength()
Returns the payload length

getPayload

byte[] getPayload()
Returns the payload

setHeader

void setHeader(byte head)
Sets the extension hearder

setADUPayloadLength

void setADUPayloadLength(int length)
Sets the payload length

setPayload

void setPayload(byte[] payload)
Sets the payload