All Packages Class Hierarchy This Package Previous Next Index
Class jsnmp.SnmpOID
java.lang.Object
|
+----jsnmp.SnmpVar
|
+----jsnmp.SnmpOID
- public class SnmpOID
- extends SnmpVar
-
value
-
-
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.
-
decode(ByteArrayInputStream, int)
- Method used to extract (decode) the received byte stream for
the current SNMP variable.
-
encode()
- ASN encoder - returns false on failure
-
getValue()
- Function to return Object ID value as an array of longs
-
setOID(String)
-
-
toString()
- To convert the object to a printable string used in printing
If node is not null, i.e.
value
private long value[]
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
getValue
public Object getValue()
- Function to return Object ID value as an array of longs
- Overrides:
- getValue in class SnmpVar
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
encode
public byte[] encode()
- ASN encoder - returns false on failure
- Overrides:
- encode in class SnmpVar
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
setOID
private void setOID(String oidString)
All Packages Class Hierarchy This Package Previous Next Index