|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.snmputils.VariableBinding
com.tivoli.twg.snmputils.OpaqueVbl
Opaque variable binding.
Field Summary |
---|
Fields inherited from class com.tivoli.twg.snmputils.VariableBinding |
---|
oid |
Constructor Summary | |
---|---|
OpaqueVbl(java.lang.String oid,
byte[] value)
Constructor using primitive type for value |
|
OpaqueVbl(java.lang.String oid,
java.lang.Byte[] valueObject)
Constructor using object type for value |
Method Summary | |
---|---|
void |
addToPdu(SNMPPDU pdu)
Adds the variable binding to the specified PDU |
byte[] |
getBytes()
Returns a byte array of the string I'm holding. |
static int |
getMIBType()
Describes the type of MIB I represent. |
static int |
getType()
Describes the type of variable binding I represent. |
byte[] |
getValue()
Returns the value for this variable binding as a primitive |
java.lang.Object |
getValueAsObject()
Returns the value for this variable binding as an Object |
int |
size()
Returns the size of the variable binding |
Methods inherited from class com.tivoli.twg.snmputils.VariableBinding |
---|
getOid, setOid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OpaqueVbl(java.lang.String oid, byte[] value)
oid
- string for the OID of this variable bindingvalue
- A byte[] to create a VariableBinding for.public OpaqueVbl(java.lang.String oid, java.lang.Byte[] valueObject)
oid
- string for the OID of this variable bindingMethod Detail |
public static int getType()
SNMPPDU
public static int getMIBType()
TWGMIBItem2
public byte[] getBytes()
public byte[] getValue()
public java.lang.Object getValueAsObject()
getValueAsObject
in class VariableBinding
public void addToPdu(SNMPPDU pdu)
addToPdu
in class VariableBinding
pdu
- SNMPPDU to add variable binding topublic int size()
size
in class VariableBinding
VariableBinding
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |