Package org.lionsoul.ip2region.xdb
Class Util
java.lang.Object
org.lionsoul.ip2region.xdb.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToString(byte[] buff, int offset, int length) static byte[]ipAddOne(byte[] ip) static intipCompare(byte[] ip1, byte[] ip2) static StringipJoin(byte[] ip) static intipSubCompare(byte[] ip, byte[] buff, int offset) static byte[]ipSubOne(byte[] ip) static StringipToString(byte[] ip) static byte[]
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
parseIP
- Throws:
InetAddressException
-
ipToString
-
ipJoin
-
bytesToString
-
ipCompare
public static int ipCompare(byte[] ip1, byte[] ip2) -
ipSubCompare
public static int ipSubCompare(byte[] ip, byte[] buff, int offset) -
ipAddOne
public static byte[] ipAddOne(byte[] ip) -
ipSubOne
public static byte[] ipSubOne(byte[] ip)
-