|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--edu.virginia.cs.mng.hypercast.Extension
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 |
|
| Field Detail |
private byte Header
private int PayloadLength
private byte[] Payload
| Constructor Detail |
Extension(byte header,
byte[] payload,
int payloadlength)
Extension(Extension e)
Extension()
| Method Detail |
byte getHeader()
int getADUPayloadLength()
byte[] getPayload()
void setHeader(byte head)
void setADUPayloadLength(int length)
void setPayload(byte[] payload)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||