|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsnmp.SNMPObject
snmp.SNMPOctetString
snmp.SNMPIPAddress
Class to hold IP addresses; special case of SNMP Octet String.
| Field Summary |
| Fields inherited from class snmp.SNMPOctetString |
data, tag |
| Constructor Summary | |
SNMPIPAddress()
Initialize to 0.0.0.0 |
|
SNMPIPAddress(byte[] enc)
Used to initialize from the BER encoding, as received in a response from an SNMP device responding to an SNMPGetRequest, or from a supplied byte array containing the address components. |
|
SNMPIPAddress(java.lang.String string)
Used to initialize from a string containing a standard "dotted" IP address. |
|
| Method Summary | |
void |
setValue(java.lang.Object newAddress)
Used to set the value from a byte array containing the address. |
java.lang.String |
toString()
Return pretty-printed IP address. |
| Methods inherited from class snmp.SNMPOctetString |
equals, extractFromBEREncoding, getBEREncoding, getValue, hashCode, toHexString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SNMPIPAddress()
public SNMPIPAddress(java.lang.String string)
throws SNMPBadValueException
SNMPBadValueException - Indicates an invalid string supplied: more than 4 components,
component values not between 0 and 255, etc.
public SNMPIPAddress(byte[] enc)
throws SNMPBadValueException
SNMPBadValueException - Indicates an invalid array supplied: must have length 4.| Method Detail |
public void setValue(java.lang.Object newAddress)
throws SNMPBadValueException
setValue in class SNMPOctetStringSNMPBadValueException - Indicates an incorrect object type supplied, or array of
incorrect size.public java.lang.String toString()
toString in class SNMPOctetString
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||