Package org.lionsoul.ip2region.xdb
Class Version
java.lang.Object
org.lionsoul.ip2region.xdb.Version
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final VersionfromHeader(Header header) static final VersionintipCompare(byte[] ip1, byte[] ip2) abstract intipSubCompare(byte[] ip1, byte[] buff, int offset) abstract intputBytes(byte[] buff, int offset, byte[] ip) toString()
-
Field Details
-
IPv4VersionNo
public static final int IPv4VersionNo- See Also:
-
IPv6VersionNo
public static final int IPv6VersionNo- See Also:
-
IPv4
-
IPv6
-
id
public final int id -
name
-
bytes
public final int bytes -
segmentIndexSize
public final int segmentIndexSize
-
-
Constructor Details
-
Version
-
-
Method Details
-
putBytes
public abstract int putBytes(byte[] buff, int offset, byte[] ip) -
ipCompare
public int ipCompare(byte[] ip1, byte[] ip2) -
ipSubCompare
public abstract int ipSubCompare(byte[] ip1, byte[] buff, int offset) -
fromName
- Throws:
Exception
-
fromHeader
- Throws:
XdbException
-
toString
-