|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.net.util.SubnetUtils
public class SubnetUtils
A class that performs some subnet calculations given a network address and a subnet mask.
http://www.faqs.org/rfcs/rfc1519.html| Nested Class Summary | |
|---|---|
class |
SubnetUtils.SubnetInfo
Convenience container for subnet summary information. |
| Constructor Summary | |
|---|---|
SubnetUtils(String cidrNotation)
Constructor that takes a CIDR-notation string, e.g. |
|
SubnetUtils(String address,
String mask)
Constructor that takes two dotted decimal addresses. |
|
| Method Summary | |
|---|---|
SubnetUtils.SubnetInfo |
getInfo()
Return a SubnetUtils.SubnetInfo instance that contains subnet-specific statistics |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubnetUtils(String cidrNotation)
cidrNotation - A CIDR-notation string, e.g. "192.168.0.1/16"
public SubnetUtils(String address,
String mask)
address - An IP address, e.g. "192.168.0.1"mask - A dotted decimal netmask e.g. "255.255.0.0"| Method Detail |
|---|
public final SubnetUtils.SubnetInfo getInfo()
SubnetUtils.SubnetInfo instance that contains subnet-specific statistics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||