|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--snmp.SNMPObject
|
+--snmp.SNMPOctetString
|
+--snmp.SNMPNSAPAddress
Defines class for holding physical 6-byte addresses.
| Field Summary | |
protected byte |
tag
|
| Fields inherited from class snmp.SNMPOctetString |
data |
| Constructor Summary | |
SNMPNSAPAddress()
Initialize address to 0.0.0.0.0.0. |
|
SNMPNSAPAddress(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 (dash-separated) 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 SNMPNSAPAddress()
public SNMPNSAPAddress(byte[] enc)
throws SNMPBadValueException
SNMPBadValueException - Indicates an invalid array supplied: must have length 6.| 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||