public class IPAddressCompare extends Object
| Constructor and Description |
|---|
IPAddressCompare() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
addressToByteArrayV4(String ipAddress)
Converts String to byte array for IPV4 , returns null if ip address is not legal
|
static byte[] |
addressToByteArrayV6(String ipAddress)
Converts String to byte array for IPV6 , returns null if ip address is not legal
|
static IPAddressType |
getAddressType(String ipAddress)
Gets IP address type
|
static boolean |
isInRangeV4(byte[] network,
byte[] subnet,
byte[] ipAddress)
Checks whether ipAddress is in IPV4 network with specified subnet
|
static boolean |
isInRangeV6(byte[] network,
byte[] subnet,
byte[] ipAddress)
Checks whether ipAddress is in IPV6 network with specified subnet
|
public static boolean isInRangeV4(byte[] network,
byte[] subnet,
byte[] ipAddress)
public static boolean isInRangeV6(byte[] network,
byte[] subnet,
byte[] ipAddress)
public static IPAddressType getAddressType(String ipAddress)
public static byte[] addressToByteArrayV4(String ipAddress)
public static byte[] addressToByteArrayV6(String ipAddress)
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.