|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.net.util.SubnetUtils.SubnetInfo
public final class SubnetUtils.SubnetInfo
Convenience container for subnet summary information.
Method Summary | |
---|---|
int |
asInteger(String address)
|
String |
getAddress()
|
int |
getAddressCount()
Get the count of available addresses. |
String[] |
getAllAddresses()
|
String |
getBroadcastAddress()
|
String |
getCidrSignature()
|
String |
getHighAddress()
Return the high address as a dotted IP address. |
String |
getLowAddress()
Return the low address as a dotted IP address. |
String |
getNetmask()
|
String |
getNetworkAddress()
|
boolean |
isInRange(String address)
Returns true if the parameter address is in the
range of usable endpoint addresses for this subnet. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isInRange(String address)
address
is in the
range of usable endpoint addresses for this subnet. This excludes the
network and broadcast adresses.
address
- A dot-delimited IPv4 address, e.g. "192.168.0.1"
public String getBroadcastAddress()
public String getNetworkAddress()
public String getNetmask()
public String getAddress()
public String getLowAddress()
public String getHighAddress()
public int getAddressCount()
public int asInteger(String address)
public String getCidrSignature()
public String[] getAllAddresses()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |