Package com.baremaps.iploc
Class IpLoc
java.lang.Object
com.baremaps.iploc.IpLoc
Generating pairs of IP address ranges and their locations into an SQLite database
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinsertNicObjects(Stream<NicObject> nicObjects) Insert the nic objects into the Iploc database.
-
Constructor Details
-
IpLoc
Create a new IpLoc object- Parameters:
databaseUrl- the jdbc url to the sqlite databasegeocoder- the geocoder that will be used to find the locations of the objects
-
-
Method Details
-
insertNicObjects
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
-