SourceForge.net Logo

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

Field Summary
static ASN_TYPE type
           
 
Fields inherited from class org.netsnmp.ASN.OCTET_STR
data
 
Constructor Summary
IPADDRESS(byte[] data)
          Creates a new instance of IPADDRESS
 
Method Summary
 int asn_type()
           
 String toString()
          return a dotted decimal representation of this ip address.
 ASN_TYPE type()
           
 
Methods inherited from class org.netsnmp.ASN.OCTET_STR
toJavaObject, toOctetString
 
Methods inherited from class org.netsnmp.ASN.ASNValue
compareTo, toBoolean, toInt, toInt64, toOBJECTID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public static final ASN_TYPE type
Constructor Detail

IPADDRESS

public IPADDRESS(byte[] data)
Creates a new instance of IPADDRESS

Method Detail

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

SourceForge.net Logo