public class NetworkUtil extends Object
| Constructor and Description |
|---|
NetworkUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
belongsToNetwork(InetAddress address,
InetAddress networkAddress,
int networkMask)
Returns true if the passed
address is part of the network represented by the passed networkAddress
and networkMask. |
static String |
formatPossibleIpv6Address(String address) |
public static boolean belongsToNetwork(InetAddress address, InetAddress networkAddress, int networkMask)
address is part of the network represented by the passed networkAddress
and networkMask. Else returns falseaddress - The address being checkednetworkAddress - The network addressnetworkMask - The network mask bitsCopyright © 2018 JBoss by Red Hat. All rights reserved.