Java org.apache.commons.net.util SubnetUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.util SubnetUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.util SubnetUtils.

The text is from its open source code.

Constructor

SubnetUtils(String cidrNotation)
Constructor that takes a CIDR-notation string, e.g.
SubnetUtils(String address, String mask)
Constructor that takes a dotted decimal address and a dotted decimal mask.

Method

SubnetInfogetInfo()
Return a SubnetInfo instance that contains subnet-specific statistics
voidsetInclusiveHostCount(boolean inclusiveHostCount)
Set to true if you want the return value of SubnetInfo#getAddressCount() to include the network and broadcast addresses.