|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.tools.net.snmp.api.SNMPObject
com.amx.duet.tools.net.snmp.api.SNMPOctetString
com.amx.duet.tools.net.snmp.api.SNMPNSAPAddress
Defines class for holding physical 6-byte addresses.
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. |
|
SNMPNSAPAddress(java.lang.String string)
|
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 com.amx.duet.tools.net.snmp.api.SNMPOctetString |
equals, getValue, hashCode, toHexString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SNMPNSAPAddress()
public SNMPNSAPAddress(java.lang.String string) throws SNMPBadValueException
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 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |