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
-
SnmpIpAddress(byte[])
- Constructor accepts a raw IP address - 4 bytes
-
SnmpIpAddress(String)
- Constructor accepts a host name or IP address
-
netbToString(byte[])
- A converter from raw IP address (byte[]) to string
-
toHostName()
- To convert the object to a host name
-
toString()
- To convert the object to a printable string
-
toTagString()
- To convert the object to a printable string tagged with IpAddress:
SnmpIpAddress
public SnmpIpAddress(String s)
- Constructor accepts a host name or IP address
SnmpIpAddress
public SnmpIpAddress(byte b[])
- Constructor accepts a raw IP address - 4 bytes
toString
public String toString()
- To convert the object to a printable string
- Overrides:
- toString in class SnmpString
toTagString
public String toTagString()
- To convert the object to a printable string tagged with IpAddress:
- Overrides:
- toTagString in class SnmpString
toHostName
public String toHostName()
- To convert the object to a host name
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