Class IpLoc

java.lang.Object
com.baremaps.iploc.IpLoc

public class IpLoc extends Object
Generating pairs of IP address ranges and their locations into an SQLite database
  • Constructor Details

    • IpLoc

      public IpLoc(String databaseUrl, Geocoder geocoder)
      Create a new IpLoc object
      Parameters:
      databaseUrl - the jdbc url to the sqlite database
      geocoder - the geocoder that will be used to find the locations of the objects
  • Method Details

    • insertNicObjects

      public void insertNicObjects(Stream<NicObject> nicObjects)
      Insert the nic objects into the Iploc database. Only inetnum NIC Objects are supported for now. The type of the object is defined by the key of the first attribute in the NIC object.
      Parameters:
      nicObjects - the stream of nic objects to import
    • getIplocStats

      public IpLocStats getIplocStats()