public abstract class IPUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int[] |
calcBroadcastAddress(int[] in,
int m) |
static int[] |
calcFirstAddress(int[] ip,
int[] mask) |
static int[] |
calcLastAddress(int[] in,
int mask) |
static int[] |
calcNetworkNumber(int[] ip,
int[] mask) |
static String |
createAddressString(int[] addr) |
static int[] |
createMaskArray(int bit) |
static int[] |
getByteAddress(String ipAddress) |
static int |
getNumberOfHosts(int[] ip,
int m) |
static int[] |
nextAddress(int[] ip) |
public static int[] calcNetworkNumber(int[] ip,
int[] mask)
ip - mask - public static int[] calcLastAddress(int[] in,
int mask)
in - mask - public static int[] createMaskArray(int bit)
bit - public static int[] calcFirstAddress(int[] ip,
int[] mask)
ip - mask - public static int[] calcBroadcastAddress(int[] in,
int m)
in - m - public static int getNumberOfHosts(int[] ip,
int m)
ip - m - public static String createAddressString(int[] addr)
addr - public static int[] nextAddress(int[] ip)
ip - public static int[] getByteAddress(String ipAddress)
ipAddress - Copyright © 2025. All rights reserved.