public abstract class RSVPObject extends Object implements RSVPElement
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes |
protected int |
classNum |
protected int |
cType |
protected int |
length |
Constructor and Description |
---|
RSVPObject() |
RSVPObject(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
abstract void |
decode(byte[] bytes,
int offset) |
void |
decodeHeader(byte[] bytes,
int offset)
Common RSVP Objects Header decoding method
|
abstract void |
encode()
Generic method to encode an RSVP element
|
void |
encodeHeader()
Common RSVP Objects Header encoding method
|
byte[] |
getBytes()
Generic method to get the byte array from an encoded RSVP element
|
int |
getClassNum() |
static int |
getClassNum(byte[] bytes,
int offset) |
int |
getcType() |
static int |
getcType(byte[] bytes,
int offset) |
int |
getLength()
Generic method to get length an encoded RSVP element byte array
|
static int |
getLength(byte[] bytes,
int offset) |
void |
setBytes(byte[] bytes) |
void |
setClassNum(int classNum) |
void |
setcType(int cType) |
void |
setLength(int length) |
protected int length
protected int classNum
protected int cType
protected byte[] bytes
public RSVPObject(byte[] bytes, int offset)
public RSVPObject()
public void encodeHeader()
public void decodeHeader(byte[] bytes, int offset)
bytes
- offset
- public abstract void encode() throws RSVPProtocolViolationException
RSVPElement
encode
in interface RSVPElement
RSVPProtocolViolationException
public abstract void decode(byte[] bytes, int offset) throws RSVPProtocolViolationException
RSVPProtocolViolationException
public int getLength()
RSVPElement
getLength
in interface RSVPElement
public void setLength(int length)
public int getClassNum()
public void setClassNum(int classNum)
public int getcType()
public void setcType(int cType)
public byte[] getBytes()
RSVPElement
getBytes
in interface RSVPElement
public void setBytes(byte[] bytes)
public static int getClassNum(byte[] bytes, int offset)
public static int getcType(byte[] bytes, int offset)
public static int getLength(byte[] bytes, int offset)
Copyright © 2016. All rights reserved.