All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Snmp.SnmpIpAddress

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

public class SnmpIpAddress
extends SnmpString
Class of SNMP IpAddress Variable - Sub-class of SnmpVar. Value stored as String of length 4 with each lower byte corresponding to the raw IP address


Constructor Index

 o SnmpIpAddress(byte[])
Constructor accepts a raw IP address - 4 bytes
 o SnmpIpAddress(String)
Constructor accepts a host name or IP address

Method Index

 o netbToString(byte[])
A converter from raw IP address (byte[]) to string
 o toHostName()
To convert the object to a host name
 o toString()
To convert the object to a printable string
 o toTagString()
To convert the object to a printable string tagged with IpAddress:

Constructors

 o SnmpIpAddress
 public SnmpIpAddress(String s)
Constructor accepts a host name or IP address

 o SnmpIpAddress
 public SnmpIpAddress(byte b[])
Constructor accepts a raw IP address - 4 bytes

Methods

 o toString
 public String toString()
To convert the object to a printable string

Overrides:
toString in class SnmpString
 o toTagString
 public String toTagString()
To convert the object to a printable string tagged with IpAddress:

Overrides:
toTagString in class SnmpString
 o toHostName
 public String toHostName()
To convert the object to a host name

 o netbToString
 public static String netbToString(byte b[])
A converter from raw IP address (byte[]) to string


All Packages  Class Hierarchy  This Package  Previous  Next  Index