ip2location
Class IP2Location

java.lang.Object
  extended byip2location.IP2Location

public class IP2Location
extends java.lang.Object


Constructor Summary
IP2Location()
           
 
Method Summary
 void close()
          This function is to close open file
 ip2location.IP2LocationRecord IPQuery(java.lang.String IPAddress, java.lang.String IPLicensePath)
          This function to query IP2Location data
 void open(java.lang.String IPDatabasePath)
          This function is to open database file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IP2Location

public IP2Location()
Method Detail

close

public void close()
This function is to close open file


IPQuery

public ip2location.IP2LocationRecord IPQuery(java.lang.String IPAddress,
                                             java.lang.String IPLicensePath)
                                      throws java.io.IOException,
                                             java.net.UnknownHostException
This function to query IP2Location data

Parameters:
IPAddress - IP Address you wish to query
IPLicensePath - License.key path
Returns:
IP2Location data
Throws:
java.io.IOException
java.net.UnknownHostException

open

public void open(java.lang.String IPDatabasePath)
          throws java.io.FileNotFoundException,
                 java.io.IOException
This function is to open database file

Parameters:
IPDatabasePath - IP2Location database path
Throws:
java.io.FileNotFoundException
java.io.IOException