public class Label extends RSVPObject
Modifier and Type | Field and Description |
---|---|
protected int |
label
Label 4 bytes length
|
bytes, classNum, cType, length
Constructor and Description |
---|
Label() |
Label(byte[] bytes,
int offset)
Constructor to be used when a new ERO Object wanted to be decoded from a received
message.
|
Label(int label)
Constructor to be used when a new Label Object wanted to be attached to a new message
|
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] bytes,
int offset) |
void |
encode()
Generic method to encode an RSVP element
|
int |
getLabel() |
void |
setLabel(int label) |
decodeHeader, encodeHeader, getBytes, getClassNum, getClassNum, getcType, getcType, getLength, getLength, setBytes, setClassNum, setcType, setLength
public Label(int label)
label
- The label number requestedpublic Label()
public Label(byte[] bytes, int offset)
bytes
- offset
- public void encode() throws RSVPProtocolViolationException
RSVPElement
encode
in interface RSVPElement
encode
in class RSVPObject
RSVPProtocolViolationException
public void decode(byte[] bytes, int offset) throws RSVPProtocolViolationException
decode
in class RSVPObject
RSVPProtocolViolationException
public int getLabel()
public void setLabel(int label)
Copyright © 2016. All rights reserved.