|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--snmp.SNMPObject | +--snmp.SNMPOctetString | +--snmp.SNMPIPAddress
Class to hold IP addresses; special case of SNMP Octet String.
Field Summary | |
protected byte |
tag
|
Fields inherited from class snmp.SNMPOctetString |
data |
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. |
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 |
extractFromBEREncoding, getBEREncoding, getValue, toHexString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected byte tag
Constructor Detail |
public SNMPIPAddress()
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 SNMPOctetString
SNMPBadValueException
- 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |