CIDRUtils

Provides a subnet range matcher for IPv4 and IPv6

Лицензия

Лицензия

Группа

Группа

com.github.felfert
Идентификатор

Идентификатор

cidrutils
Последняя версия

Последняя версия

1.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

CIDRUtils
Provides a subnet range matcher for IPv4 and IPv6
Ссылка на сайт

Ссылка на сайт

http://github.com/felfert/CIDRUtils
Система контроля версий

Система контроля версий

http://github.com/felfert/CIDRUtils

Скачать cidrutils

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.felfert/cidrutils/ -->
<dependency>
    <groupId>com.github.felfert</groupId>
    <artifactId>cidrutils</artifactId>
    <version>1.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.felfert/cidrutils/
implementation 'com.github.felfert:cidrutils:1.4'
// https://jarcasting.com/artifacts/com.github.felfert/cidrutils/
implementation ("com.github.felfert:cidrutils:1.4")
'com.github.felfert:cidrutils:jar:1.4'
<dependency org="com.github.felfert" name="cidrutils" rev="1.4">
  <artifact name="cidrutils" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.felfert', module='cidrutils', version='1.4')
)
libraryDependencies += "com.github.felfert" % "cidrutils" % "1.4"
[com.github.felfert/cidrutils "1.4"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.github.spotbugs : spotbugs-annotations jar 4.2.2

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.13.2

Модули Проекта

Данный проект не имеет модулей.

CIDRUtils

This is a mavenized and improved version of the original. See forked link. CIDRUtils is a Java library that enables you to get an IP range from CIDR specification. It supports both IPv4 and IPv6. CIDRUtils is also distributed via Maven Central

IPv4 Example

CIDRUtils cidrUtils = new CIDRUtils("10.77.12.11/18");
String networkAddress = cidrUtils.getNetworkAddress();
String broadcastAddress = cidrUtils.getBroadcastAddress();

Evaluating the code above would produce 10.77.0.0 for the networkAddress and 10.77.63.255 for the broadcastAddress.

IPv6 Example

CIDRUtils cidrUtils = new CIDRUtils("435:23f::45:23/101");
String networkAddress = cidrUtils.getNetworkAddress();
String broadcastAddress = cidrUtils.getBroadcastAddress();

Evaluating the code above would produce 435:23f:0:0:0:0:0:0 for the networkAddress and 435:23f:0:0:0:0:7ff:ffff for the broadcastAddress.

License

CIDRUtils is released under MIT License.

Версии библиотеки

Версия
1.4
1.3
1.2
1.1
1.0