Java reader for the MaxMind DB format
DeserializationException
have been improved, and the cause
is included, if any. Moreover, the message provides detail about the involved
types, if the exception is caused by an IllegalArgumentException
.--release
command-line option so linking when using
Java 8 works.get()
and getRecord()
methods now take a
class parameter specifying the type of object to deserialize into. You
can either deserialize into a Map
or to model classes that use the
MaxMindDbConstructor
and MaxMindDbParameter
annotations to identify
the constructors and parameters to deserialize into.jackson-databind
is no longer a dependency.Record
class is now named DatabaseRecord
. This is to avoid a
conflict with java.lang.Record
in Java 14.InvalidDatabaseException
on an invalid
control byte in the data section rather than an
ArrayIndexOutOfBoundsException
. Reported by Edwin Delgado H. GitHub
#68.synchronized
has been removed. GitHub #65 & #69.jackson-databind
has been upgraded to 2.11.0.byte
as an unsigned value. Reported by Dongmin Yu. GitHub #181 in
maxmind/GeoIP2-java.jackson-databind
dependency.getRecord
was added to com.maxmind.db.Reader
. This method
returns a com.maxmind.db.Record
object that includes the data for the
record as well as the network associated with the record.jackson-databind
is no longer
resolved correctly when a range is used. GitHub #28.