| java.lang.Object snmp.SNMPObject snmp.SNMPOctetString snmp.SNMPIPAddress
SNMPIPAddress | public class SNMPIPAddress extends SNMPOctetString (Code) | | Class to hold IP addresses; special case of SNMP Octet String.
|
Constructor Summary | |
public | SNMPIPAddress() | public | SNMPIPAddress(String string) Used to initialize from a string containing a standard "dotted" IP address. | public | 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 | |
public void | setValue(Object newAddress) Used to set the value from a byte array containing the address. | public String | toString() Return pretty-printed IP address. |
SNMPIPAddress | public SNMPIPAddress()(Code) | | Initialize to 0.0.0.0
|
SNMPIPAddress | public SNMPIPAddress(String string) throws SNMPBadValueException(Code) | | Used to initialize from a string containing a standard "dotted" IP address.
throws: SNMPBadValueException - Indicates an invalid string supplied: more than 4 components,component values not between 0 and 255, etc. |
SNMPIPAddress | public SNMPIPAddress(byte[] enc) throws SNMPBadValueException(Code) | | 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 4. |
toString | public String toString()(Code) | | Return pretty-printed IP address.
|
|
|