public class IP2Proxy extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IP2Proxy.IOModes |
| Constructor and Description |
|---|
IP2Proxy() |
| Modifier and Type | Method and Description |
|---|---|
int |
Close()
This function destroys the mapped bytes.
|
ProxyResult |
GetAll(String IP)
This function returns proxy result.
|
String |
GetAS(String IP)
This function returns the Autonomous System name.
|
String |
GetASN(String IP)
This function returns the Autonomous System Number.
|
String |
GetCity(String IP)
This function returns the city name.
|
String |
GetCountryLong(String IP)
This function returns the country name.
|
String |
GetCountryShort(String IP)
This function returns the country code.
|
String |
GetDatabaseVersion()
This function returns the IP database version.
|
String |
GetDomain(String IP)
This function returns the domain.
|
String |
GetISP(String IP)
This function returns the ISP name.
|
String |
GetLastSeen(String IP)
This function returns number of days the proxy was last seen.
|
String |
GetModuleVersion()
This function returns the module version.
|
String |
GetPackageVersion()
This function returns the package version.
|
String |
GetProxyType(String IP)
This function returns the proxy type.
|
String |
GetRegion(String IP)
This function returns the region name.
|
String |
GetUsageType(String IP)
This function returns the usage type.
|
int |
IsProxy(String IP)
This function returns ans integer to state if it proxy.
|
int |
Open(String DatabasePath)
This function initialize the component with the BIN file path and IO mode.
|
int |
Open(String DatabasePath,
IP2Proxy.IOModes IOMode) |
ProxyResult |
ProxyQuery(String IPAddress)
This function to query IP2Proxy data.
|
ProxyResult |
ProxyQuery(String IPAddress,
com.ip2proxy.IP2Proxy.Modes Mode) |
public String GetModuleVersion()
public String GetPackageVersion()
public String GetDatabaseVersion()
public int IsProxy(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetCountryShort(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetCountryLong(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetRegion(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetCity(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetISP(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetProxyType(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetDomain(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetUsageType(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetASN(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetAS(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic String GetLastSeen(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic ProxyResult GetAll(String IP) throws IOException
IP - IP Address you wish to queryIOExceptionpublic int Close()
public int Open(String DatabasePath) throws IOException
DatabasePath - Path to the BIN database fileIOMode - Default is file IOIOExceptionpublic int Open(String DatabasePath, IP2Proxy.IOModes IOMode) throws IOException
IOExceptionpublic ProxyResult ProxyQuery(String IPAddress) throws IOException
IPAddress - IP Address you wish to queryIOExceptionpublic ProxyResult ProxyQuery(String IPAddress, com.ip2proxy.IP2Proxy.Modes Mode) throws IOException
IOExceptionCopyright © 2017–2019. All rights reserved.