All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jsnmp.SnmpOID

java.lang.Object
   |
   +----jsnmp.SnmpVar
           |
           +----jsnmp.SnmpOID

public class SnmpOID
extends SnmpVar

Variable Index

 o value

Constructor Index

 o SnmpOID(String)
Requires the argument to be a String OID of the form .N.N.N, or N.N.N in which case the static Standard_Prefix in the SnmpAPI class is used.

Method Index

 o decode(ByteArrayInputStream, int)
Method used to extract (decode) the received byte stream for the current SNMP variable.
 o encode()
ASN encoder - returns false on failure
 o getValue()
Function to return Object ID value as an array of longs
 o setOID(String)
 o toString()
To convert the object to a printable string used in printing If node is not null, i.e.

Variables

 o value
 private long value[]

Constructors

 o SnmpOID
 public SnmpOID(String oid)
Requires the argument to be a String OID of the form .N.N.N, or N.N.N in which case the static Standard_Prefix in the SnmpAPI class is used. This constructor requires N be a number, not a name. In this case an explicit call to the getNode method is needed to populate the (MibNode) node

Methods

 o getValue
 public Object getValue()
Function to return Object ID value as an array of longs

Overrides:
getValue in class SnmpVar
 o toString
 public String toString()
To convert the object to a printable string used in printing If node is not null, i.e. node has been populated, the names will be returned

Overrides:
toString in class SnmpVar
 o encode
 public byte[] encode()
ASN encoder - returns false on failure

Overrides:
encode in class SnmpVar
 o decode
 public void decode(ByteArrayInputStream b,
                    int length) throws SnmpException
Method used to extract (decode) the received byte stream for the current SNMP variable.

Overrides:
decode in class SnmpVar
 o setOID
 private void setOID(String oidString)

All Packages  Class Hierarchy  This Package  Previous  Next  Index