org.netsnmp.ASN
Class IPADDRESS
java.lang.Object
|
+--org.netsnmp.ASN.ASNValue
|
+--org.netsnmp.ASN.OCTET_STR
|
+--org.netsnmp.ASN.IPADDRESS
- All Implemented Interfaces:
- Comparable, Serializable
- public class IPADDRESS
- extends OCTET_STR
Class represents an IP Address. data consists of a array of 4 bytes representing the elements
of an IPv4 address.
- Author:
- Andrew E. Page aepage@users.sourceforge.net
- See Also:
- Serialized Form
Constructor Summary |
IPADDRESS(byte[] data)
Creates a new instance of IPADDRESS |
type
public static final ASN_TYPE type
IPADDRESS
public IPADDRESS(byte[] data)
- Creates a new instance of IPADDRESS
asn_type
public int asn_type()
- Overrides:
asn_type
in class OCTET_STR
type
public ASN_TYPE type()
- Overrides:
type
in class OCTET_STR
toString
public String toString()
- return a dotted decimal representation of this ip address.
- Overrides:
toString
in class OCTET_STR