|
JoeSNMP API 0.2.6 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.protocols.snmp.SnmpOctetString
org.opennms.protocols.snmp.SnmpIPAddress
This SnmpIPAddress is used to extend the Snmp Octet String SMI class. This is normally used to transmit IP Addresses with a length of 4 bytes. Most of the management of the data is handled by the base class.
Field Summary | |
static byte |
ASNTYPE
Defines the ASN.1 type for this object. |
(package private) static long |
serialVersionUID
Required for evolving serialization format. |
Fields inherited from class org.opennms.protocols.snmp.SnmpOctetString |
|
Constructor Summary | |
SnmpIPAddress()
Constructs a default object with a length of zero. |
|
SnmpIPAddress(byte[] data)
Constructs an Application String with the passed data. |
|
SnmpIPAddress(SnmpIPAddress second)
Copy constructor. |
|
SnmpIPAddress(SnmpOctetString second)
Copy constructor based on the base class. |
Method Summary | |
Object |
clone()
Create a new object that is a duplicate of the current object. |
IPv4Address |
convertToIpAddress()
Converts the current Application String to an IPv4Address object. |
SnmpSyntax |
duplicate()
Create a new object that is a duplicate of the current object. |
String |
toString()
Returns the application string as a IPv4 dotted decimal address |
byte |
typeId()
Returns the ASN.1 type for this object. |
Methods inherited from class org.opennms.protocols.snmp.SnmpOctetString |
decodeASN, encodeASN, getLength, getString, setString, setString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final long serialVersionUID
public static final byte ASNTYPE
Constructor Detail |
public SnmpIPAddress()
public SnmpIPAddress(byte[] data)
data
- The application string to manage (UTF-8)public SnmpIPAddress(SnmpIPAddress second)
second
- The object to copy.public SnmpIPAddress(SnmpOctetString second)
second
- The object to copyMethod Detail |
public byte typeId()
typeId
in interface SnmpSyntax
typeId
in class SnmpOctetString
public SnmpSyntax duplicate()
duplicate
in interface SnmpSyntax
duplicate
in class SnmpOctetString
public Object clone()
clone
in class SnmpOctetString
public IPv4Address convertToIpAddress() throws SnmpBadConversionException
SnmpBadConversionException
- Thrown if the length of the string
is invalid. Must be equal to fourpublic String toString()
toString
in class SnmpOctetString
|
JoeSNMP API 0.2.6 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |