public abstract class RSVPConstruct extends Object implements RSVPElement
A RSVP Construct is a rule that joins RSVP Objects and Constructions. Each specific construct will have its elements
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes |
protected int |
length |
Constructor and Description |
---|
RSVPConstruct() |
Modifier and Type | Method and Description |
---|---|
abstract void |
decode(byte[] bytes,
int offset)
Decode the Element based on the bytes passed, starting in the offset position
|
byte[] |
getBytes()
Generic method to get the byte array from an encoded RSVP element
|
int |
getLength()
Generic method to get length an encoded RSVP element byte array
|
void |
setBytes(byte[] bytes) |
void |
setLength(int length) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode
public byte[] getBytes()
RSVPElement
getBytes
in interface RSVPElement
public void setBytes(byte[] bytes)
public int getLength()
RSVPElement
getLength
in interface RSVPElement
public void setLength(int length)
public abstract void decode(byte[] bytes, int offset) throws RSVPProtocolViolationException
bytes
- offset
- RSVPProtocolViolationException
Copyright © 2016. All rights reserved.