|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.protocol.snmp.VarBindContainer
This class implements a container of SnmpVarBind instances.
Method Summary | |
void |
addVarBind(SnmpVarBind varbind)
Adds a new SnmpVarBind instance to this PDU. |
void |
addVarBinds(SnmpVarBind[] varbinds)
Adds new SnmpVarBind instances to this PDU. |
void |
addVarBinds(SnmpVarBindList varbinds)
Adds new SnmpVarBind instances to this PDU. |
SnmpVarBind |
getFirstVarBind()
Returns the first element |
SnmpVarBind |
getLastVarBind()
Returns the last element |
SnmpVarBind |
getVarBind(int index)
Returns the varbind at the specified position in this container. |
int |
getVarBindCount()
Returns the number of varbind contained in this object. |
SnmpVarBind[] |
getVarBinds()
Returns varbind array |
void |
removeAllVarBinds()
Removes all varbinds |
void |
removeAllVarBinds(int offset)
Removes all varbinds starting from offset, inclusive. |
SnmpVarBind |
removeVarBind(int index)
|
void |
setVarBinds(SnmpVarBind[] varbinds)
Removes all old varbinds, and set new varbinds |
void |
setVarBinds(SnmpVarBindList varbinds)
Removes all old varbinds, and set new varbinds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getVarBindCount()
public SnmpVarBind getLastVarBind()
public SnmpVarBind getFirstVarBind()
public void removeAllVarBinds()
public void removeAllVarBinds(int offset)
offset
- the starting index of varbinds to be removed
IndexOutOfBoundsException
- if offset is out of range
(offset < 0 || offset >= getVarBindCount()).public SnmpVarBind removeVarBind(int index)
index
- - the index of the element to removed.
IndexOutOfBoundsException
- if index is out of range (index
< 0 || index >= getVarBindCount()).public SnmpVarBind getVarBind(int index)
index
- - the index of the element to be retrieved.
IndexOutOfBoundsException
- if index is out of range (index
< 0 || index >= getVarBindCount()).public SnmpVarBind[] getVarBinds()
public void addVarBind(SnmpVarBind varbind)
public void addVarBinds(SnmpVarBind[] varbinds)
public void addVarBinds(SnmpVarBindList varbinds)
public void setVarBinds(SnmpVarBind[] varbinds)
public void setVarBinds(SnmpVarBindList varbinds)
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |