All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Snmp.SnmpVar

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

public abstract class SnmpVar
extends Object
Abstract class of SNMP Variable that is a super-class of all available SNMP types, e.g. integer, IpAddress, etc.


Variable Index

 o Type
Type of SNMP variable based on static definitions in the SnmpAPI class, e.g.

Constructor Index

 o SnmpVar()

Method Index

 o toBytes()
To return the value as raw bytes
 o toString()
To convert to printable string used in printing variables
 o toTagString()
To convert to printable string with object type tag used in printing variables more descriptively, e.g.
 o toValue()
Function to return value of SNMP variable as an appropriate Object type, e.g.

Variables

 o Type
 public byte Type
Type of SNMP variable based on static definitions in the SnmpAPI class, e.g. SnmpAPI.INTEGER, SnmpAPI.TIMETICKS, etc.

Constructors

 o SnmpVar
 public SnmpVar()

Methods

 o toValue
 public abstract Object toValue()
Function to return value of SNMP variable as an appropriate Object type, e.g. Integer, String, etc.

 o toString
 public abstract String toString()
To convert to printable string used in printing variables

Overrides:
toString in class Object
 o toTagString
 public abstract String toTagString()
To convert to printable string with object type tag used in printing variables more descriptively, e.g. INTEGER: value.

 o toBytes
 public abstract byte[] toBytes()
To return the value as raw bytes


All Packages  Class Hierarchy  This Package  Previous  Next  Index