net.i2p.router.transport

## Class GeoIPv6

- java.lang.Object
- - net.i2p.router.transport.GeoIPv6

-     public class GeoIPv6
      extends Object

  Generate compressed geoipv6.dat.gz file, and lookup entries in it. Public only for command line use, not a public API, not for external use.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GeoIPv6()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`

- - ### Constructor Detail

    - #### GeoIPv6

          public GeoIPv6()

  - ### Method Detail

    - #### 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

    - #### 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 total failure. Individual array elements will be null for lookup failure of that item.