net.i2p.router.transport
Class GeoIPv6
java.lang.Object
net.i2p.router.transport.GeoIPv6
class GeoIPv6
- extends Object
Generate compressed geoipv6.dat.gz file, and
lookup entries in it.
- Since:
- IPv6
Method Summary |
static void |
main(String[] args)
Merge and compress CSV files to I2P compressed format
GeoIPv6 infile1.csv[.gz] [infile2.csv[.gz]...] outfile.dat.gz
Used to create the file for distribution, do not comment out |
static String[] |
readGeoIPFile(I2PAppContext context,
Long[] search,
Map<String,String> codeCache)
Lookup search items in the geoip file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeoIPv6
GeoIPv6()
readGeoIPFile
public static String[] readGeoIPFile(I2PAppContext context,
Long[] search,
Map<String,String> codeCache)
- Lookup search items in the geoip file.
See below for format.
- Parameters:
search
- a sorted array of IPs to search
- Returns:
- an array of country codes, same order as the search param,
or a zero-length array on failure
main
public static void main(String[] args)
- Merge and compress CSV files to I2P compressed format
GeoIPv6 infile1.csv[.gz] [infile2.csv[.gz]...] outfile.dat.gz
Used to create the file for distribution, do not comment out