org.apache.commons.net.util
public class SubnetUtils extends java.lang.Object
http://www.faqs.org/rfcs/rfc1519.html
Modifier and Type | Class and Description |
---|---|
class |
SubnetUtils.SubnetInfo
Convenience container for subnet summary information.
|
Constructor and Description |
---|
SubnetUtils(java.lang.String cidrNotation)
Constructor that takes a CIDR-notation string, e.g.
|
SubnetUtils(java.lang.String address,
java.lang.String mask)
Constructor that takes two dotted decimal addresses.
|
Modifier and Type | Method and Description |
---|---|
SubnetUtils.SubnetInfo |
getInfo()
Return a
SubnetUtils.SubnetInfo instance that contains subnet-specific statistics |
public SubnetUtils(java.lang.String cidrNotation)
cidrNotation
- A CIDR-notation string, e.g. "192.168.0.1/16"public SubnetUtils(java.lang.String address, java.lang.String mask)
address
- An IP address, e.g. "192.168.0.1"mask
- A dotted decimal netmask e.g. "255.255.0.0"public final SubnetUtils.SubnetInfo getInfo()
SubnetUtils.SubnetInfo
instance that contains subnet-specific statistics