This class was copied from https://raw.githubusercontent.com/maxmind/GeoIP2-java/master/src/main/java/com/maxmind/geoip2/DatabaseReader.java It is written by Maxmind and it is available under
Apache Software License V2
The modification we're making to the code below is to stop using exceptions for mainline flow control.