All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jsnmp.SnmpVar

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

public abstract class SnmpVar
extends Object
This base class acts as the template for all other SNMP variables.


Variable Index

 o type

Constructor Index

 o SnmpVar()

Method Index

 o decode(ByteArrayInputStream, int)
Method used to extract (decode) the received byte stream for the current SNMP variable.
 o encode()
Method used to create (encode) the byte stream for the current SNMP variable.
 o getType()
Class method to extract the variable type value.
 o getValue()
Method used by all SNMP variable definitions to fetch the variable value.
 o toString()
Method used to produce a printable string for variable value.

Variables

 o type
 protected byte type

Constructors

 o SnmpVar
 public SnmpVar()

Methods

 o getType
 public byte getType()
Class method to extract the variable type value.

 o getValue
 public abstract Object getValue()
Method used by all SNMP variable definitions to fetch the variable value.

 o toString
 public abstract String toString()
Method used to produce a printable string for variable value.

Overrides:
toString in class Object
 o encode
 public abstract byte[] encode()
Method used to create (encode) the byte stream for the current SNMP variable.

 o decode
 public abstract void decode(ByteArrayInputStream b,
                             int length) throws SnmpException
Method used to extract (decode) the received byte stream for the current SNMP variable.


All Packages  Class Hierarchy  This Package  Previous  Next  Index