public interface Address extends AssignableFromString, AssignableFromByteArray
Address interface serves as a base class for all SNMP
transport addresses.
Note: This class should be moved to package org.snmp4j
in SNMP4J 2.0.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid()
Checks whether this
Address is a valid transport address. |
boolean |
parseAddress(String address)
Parses the address from the supplied string representation.
|
void |
setValue(String address)
Sets the address value from the supplied String.
|
setValue, toByteArrayboolean isValid()
Address is a valid transport address.true if the address is valid, false otherwise.boolean parseAddress(String address)
address - a String representation of this address.true if address could be successfully
parsed and has been assigned to this address object, false
otherwise.void setValue(String address)
IllegalArgumentException runtime exception is thrown.setValue in interface AssignableFromStringaddress - an address String.Copyright © 2016 SNMP4J.org. All Rights Reserved.