Class DatabaseReader.Builder

  • Enclosing class:
    DatabaseReader

    public static final class DatabaseReader.Builder
    extends Object

    Constructs a Builder for the DatabaseReader. The file passed to it must be a valid GeoIP2 database file.

    Builder creates instances of DatabaseReader from values set by the methods.

    Only the values set in the Builder constructor are required.

    • Constructor Detail

      • Builder

        public Builder​(InputStream stream)
        Parameters:
        stream - the stream containing the GeoIP2 database to use.
      • Builder

        public Builder​(File database)
        Parameters:
        database - the GeoIP2 database file to use.