The creation of this object is relatively expensive as it must We recommend reusing the Reader object rather than creating a new one forĮach lookup. This method will create an instance of the class and Method on Reader, along with the class of the object you want toĭeserialize into. To look up an IP address, pass the address as an InetAddress to the get This often provides performance comparable to loading the file into The default mode is MEMORY_MAP, which maps the file to virtual May pass a second parameter with a FileMode with a value of MEMORY_MAP or The reader object takes a File representing your MaxMind DB. To use the API, you must first create a Reader object. Note: For accessing MaxMind GeoIP2 databases, we generally recommend using
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |