public final class IP extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IP.Subnet |
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_IFIP4 |
static int |
FLAG_IFIP6 |
static int |
FLAG_IFREAL |
static int |
FLAG_IFUP |
static int |
IP_LOCALHOST |
static int |
IPADDR_OCTETS |
static int |
IPV6ADDR_OCTETS |
static String |
RGXPATT_DOTTEDIP |
Constructor and Description |
---|
IP() |
Modifier and Type | Method and Description |
---|---|
static int |
convertDottedIP(CharSequence ipdotted) |
static int |
convertIP(InetAddress jdkip) |
static InetAddress |
convertIP(int ip) |
static InetAddress |
convertIP(int ip,
byte[] workbuf) |
static int |
countLocalIPs(int flags) |
static StringBuilder |
displayArpaDomain(int ip) |
static StringBuilder |
displayArpaDomain(int ip,
StringBuilder sb) |
static StringBuilder |
displayDottedIP(byte[] netaddr,
int off) |
static StringBuilder |
displayDottedIP(byte[] netaddr,
int off,
StringBuilder sb) |
static StringBuilder |
displayDottedIP(int ip) |
static StringBuilder |
displayDottedIP(int ipaddr,
StringBuilder sb) |
static StringBuilder |
displayIP6(byte[] netaddr,
int off) |
static StringBuilder |
displayIP6(byte[] netaddr,
int off,
StringBuilder sb) |
static InetAddress |
getHostByName(String hostname) |
static int[] |
getLocalIPs(int flags) |
static String[] |
getLocalMACs(int flags) |
static byte[] |
ip2net(int ip) |
static byte[] |
ip2net(int ip,
byte[] netaddr,
int off) |
static int |
maskToPrefix(int mask) |
static int |
net2ip(byte[] netaddr,
int off) |
static int |
parseIP(String host) |
static IP.Subnet |
parseSubnet(String ipnet) |
static int |
prefixToMask(int prefix) |
static int |
prefixToNetSize(int prefix) |
static boolean |
validDottedIP(CharSequence ipdotted,
int ipaddr) |
public static final int IPADDR_OCTETS
public static final int IPV6ADDR_OCTETS
public static final String RGXPATT_DOTTEDIP
public static final int FLAG_IFUP
public static final int FLAG_IFREAL
public static final int FLAG_IFIP4
public static final int FLAG_IFIP6
public static final int IP_LOCALHOST
public static int prefixToMask(int prefix)
public static StringBuilder displayDottedIP(int ip)
public static StringBuilder displayDottedIP(byte[] netaddr, int off)
public static StringBuilder displayIP6(byte[] netaddr, int off)
public static byte[] ip2net(int ip)
public static InetAddress convertIP(int ip)
public static StringBuilder displayArpaDomain(int ip)
public static int maskToPrefix(int mask)
public static int prefixToNetSize(int prefix)
public static int convertDottedIP(CharSequence ipdotted)
public static boolean validDottedIP(CharSequence ipdotted, int ipaddr)
public static StringBuilder displayDottedIP(int ipaddr, StringBuilder sb)
public static StringBuilder displayDottedIP(byte[] netaddr, int off, StringBuilder sb)
public static int net2ip(byte[] netaddr, int off)
public static byte[] ip2net(int ip, byte[] netaddr, int off)
public static int convertIP(InetAddress jdkip)
public static InetAddress convertIP(int ip, byte[] workbuf)
public static StringBuilder displayArpaDomain(int ip, StringBuilder sb)
public static StringBuilder displayIP6(byte[] netaddr, int off, StringBuilder sb)
public static IP.Subnet parseSubnet(String ipnet) throws UnknownHostException
UnknownHostException
public static int parseIP(String host) throws UnknownHostException
UnknownHostException
public static int countLocalIPs(int flags) throws SocketException
SocketException
public static int[] getLocalIPs(int flags) throws SocketException
SocketException
public static String[] getLocalMACs(int flags) throws SocketException
SocketException
public static InetAddress getHostByName(String hostname) throws UnknownHostException
UnknownHostException
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.