类 Ips
java.lang.Object
club.zhcs.lina.utils.Ips
- 作者:
- Kerbores(kerbores@riemann.tech)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringhostIp()static booleaninternalIp(byte[] addr) static booleaninternalIp(String ip) static longipV4ToLong(String ipv4) static long[]ipv6ToLongs(String ipv6) static booleanstatic Stringlongs2Ipv6(long[] longs) static StringlongToIPV4(long longIp) static byte[]
-
构造器详细资料
-
Ips
public Ips()
-
-
方法详细资料
-
internalIp
-
textToNumericFormatV4
-
internalIp
public static boolean internalIp(byte[] addr) -
hostIp
-
ipV4ToLong
- 参数:
ipv4-- 返回:
-
longToIPV4
- 参数:
longIp-- 返回:
-
ipv6ToLongs
- 参数:
ipv6-- 返回:
-
longs2Ipv6
- 参数:
longs-- 返回:
-
isInRange
-