Save This Page
Home » commons-net-2.0-src » org.apache.commons.net.util » [javadoc | source]
org.apache.commons.net.util
public class: SubnetUtils [javadoc | source]
java.lang.Object
   org.apache.commons.net.util.SubnetUtils
A class that performs some subnet calculations given a network address and a subnet mask.
Nested Class Summary:
public final class  SubnetUtils.SubnetInfo  Convenience container for subnet summary information. 
Constructor:
 public SubnetUtils(String cidrNotation) 
    Constructor that takes a CIDR-notation string, e.g. "192.168.0.1/16"
    Parameters:
    cidrNotation - A CIDR-notation string, e.g. "192.168.0.1/16"
 public SubnetUtils(String address,
    String mask) 
    Constructor that takes two dotted decimal addresses.
    Parameters:
    address - An IP address, e.g. "192.168.0.1"
    mask - A dotted decimal netmask e.g. "255.255.0.0"
Method from org.apache.commons.net.util.SubnetUtils Summary:
getInfo,   pop
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.net.util.SubnetUtils Detail:
 public final SubnetInfo getInfo() 
    Return a SubnetInfo instance that contains subnet-specific statistics
 int pop(int x)