snmp
Class SNMPNSAPAddress
java.lang.Object
snmp.SNMPObject
snmp.SNMPOctetString
snmp.SNMPNSAPAddress
- public class SNMPNSAPAddress
- extends SNMPOctetString
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SNMPNSAPAddress
public SNMPNSAPAddress()
- Initialize address to 0.0.0.0.0.0.
SNMPNSAPAddress
public SNMPNSAPAddress(java.lang.String string)
throws SNMPBadValueException
SNMPNSAPAddress
public SNMPNSAPAddress(byte[] enc)
throws SNMPBadValueException
- 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.
- Throws:
SNMPBadValueException
- Indicates an invalid array supplied: must have length 6.
setValue
public void setValue(java.lang.Object newAddress)
throws SNMPBadValueException
- Used to set the value from a byte array containing the address.
- Overrides:
setValue
in class SNMPOctetString
- Throws:
SNMPBadValueException
- Indicates an incorrect object type supplied, or array of
incorrect size.
toString
public java.lang.String toString()
- Return pretty-printed (dash-separated) address.
- Overrides:
toString
in class SNMPOctetString