|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ireasoning.protocol.snmp.SnmpOctetString | +--com.ireasoning.protocol.snmp.SnmpIpAddress
This class represents Snmp IpAddress data type. The IpAddress type represents a 32-bit internet address. It is represented as an OCTET STRING of length 4, in network byte-order.
Fields inherited from interface com.ireasoning.protocol.snmp.SnmpDataType |
BITS, BITSTRING, COUNTER32, COUNTER64, END_OF_MIB_VIEW, END_OF_MIB_VIEW_OBJECT, GAUGE32, INTEGER, IPADDRESS, NO_SUCH_INSTANCE, NO_SUCH_INSTANCE_OBJECT, NO_SUCH_OBJECT, NO_SUCH_OBJECT_OBJECT, NULL, OCTETSTRING, OID, OPAQUE, PDU, SEQUENCE, SEQUENCEOF, TIMETICKS, UNSIGNED32, VARBIND |
Fields inherited from interface com.ireasoning.protocol.Msg |
ERROR_TYPE |
Constructor Summary | |
SnmpIpAddress()
Constructs a SnmpIpAddress whose ip address is 0.0.0.0 |
|
SnmpIpAddress(byte[] data)
Constructs a SnmpIpAddress object with the passed in data |
|
SnmpIpAddress(InetAddress ipAddr)
Constructs a SnmpIpAddress with the passed in ipAddr object. |
|
SnmpIpAddress(SnmpIpAddress ipAddr)
Makes a copy of passed in ipAddr object |
|
SnmpIpAddress(String ipAddr)
Constructs a SnmpIpAddress with the passed in ipAddr object. |
Method Summary | |
SnmpDataType |
copy()
Makes a copy of itself |
int |
encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
For internal use |
int |
getType()
Returns SnmpDataType.IPADDRESS |
String |
getTypeString()
Returns "IpAddress" |
InetAddress |
toInetAddress()
Converts to InetAddress object |
String |
toString()
Returns a String representation of this object. |
Methods inherited from class com.ireasoning.protocol.snmp.SnmpOctetString |
convertPhysAddress, equals, getBytes, getLength, getValue, hashCode, setValue, toHexString, toString2 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SnmpIpAddress()
public SnmpIpAddress(byte[] data)
public SnmpIpAddress(SnmpIpAddress ipAddr)
public SnmpIpAddress(String ipAddr)
IllegalArgumentException
- raised if passed ipAddr is invalidpublic SnmpIpAddress(InetAddress ipAddr)
IllegalArgumentException
- raised if passed ipAddr is invalidMethod Detail |
public int getType()
getType
in class SnmpOctetString
com.ireasoning.protocol.snmp.SnmpDataType
public String getTypeString()
getTypeString
in class SnmpOctetString
public String toString()
SnmpOctetString
toHexString()
method.toString
in class SnmpOctetString
public InetAddress toInetAddress()
public SnmpDataType copy()
SnmpDataType
copy
in class SnmpOctetString
com.ireasoning.protocol.snmp.SnmpDataType
public int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder) throws SnmpEncodingException
SnmpDataType
encode
in class SnmpOctetString
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |