Index
All Classes and Interfaces|All Packages|Serialized Form
C
- CacheKey<T> - Class in com.maxmind.db
-
CacheKey
is used as a key in the data-section cache. - CHMCache - Class in com.maxmind.db
-
A simplistic cache using a
ConcurrentHashMap
. - CHMCache() - Constructor for class com.maxmind.db.CHMCache
-
Creates a new cache with the default capacity.
- CHMCache(int) - Constructor for class com.maxmind.db.CHMCache
-
Creates a new cache with the specified capacity.
- close() - Method in class com.maxmind.db.Reader
-
Closes the database.
- ClosedDatabaseException - Exception in com.maxmind.db
-
Signals that the underlying database has been closed.
- com.maxmind.db - module com.maxmind.db
- com.maxmind.db - package com.maxmind.db
- ConstructorNotFoundException - Exception in com.maxmind.db
-
Signals that no annotated constructor was found.
D
- DatabaseRecord<T> - Class in com.maxmind.db
-
DatabaseRecord represents the data and metadata associated with a database lookup.
- DatabaseRecord(T, InetAddress, int) - Constructor for class com.maxmind.db.DatabaseRecord
-
Create a new record.
- DecodedValue - Class in com.maxmind.db
-
DecodedValue
is a wrapper for the decoded value and the number of bytes used to decode it. - DeserializationException - Exception in com.maxmind.db
-
Signals that the value could not be deserialized into the type.
E
- equals(Object) - Method in class com.maxmind.db.CacheKey
G
- get(CacheKey, NodeCache.Loader) - Method in class com.maxmind.db.CHMCache
- get(CacheKey, NodeCache.Loader) - Method in class com.maxmind.db.NoCache
- get(CacheKey, NodeCache.Loader) - Method in interface com.maxmind.db.NodeCache
-
This method returns the value for the key.
- get(InetAddress, Class<T>) - Method in class com.maxmind.db.Reader
-
Looks up
ipAddress
in the MaxMind DB. - getBinaryFormatMajorVersion() - Method in class com.maxmind.db.Metadata
- getBinaryFormatMinorVersion() - Method in class com.maxmind.db.Metadata
- getBuildDate() - Method in class com.maxmind.db.Metadata
- getData() - Method in class com.maxmind.db.DatabaseRecord
- getDatabaseType() - Method in class com.maxmind.db.Metadata
- getDescription() - Method in class com.maxmind.db.Metadata
- getInstance() - Static method in class com.maxmind.db.NoCache
- getIpVersion() - Method in class com.maxmind.db.Metadata
- getLanguages() - Method in class com.maxmind.db.Metadata
- getMetadata() - Method in class com.maxmind.db.Reader
- getNetwork() - Method in class com.maxmind.db.DatabaseRecord
- getNetworkAddress() - Method in class com.maxmind.db.Network
- getPrefixLength() - Method in class com.maxmind.db.Network
- getRecord(InetAddress, Class<T>) - Method in class com.maxmind.db.Reader
-
Looks up
ipAddress
in the MaxMind DB.
H
- hashCode() - Method in class com.maxmind.db.CacheKey
- hasNext() - Method in class com.maxmind.db.Networks
-
hasNext prepares the next network for reading with the Network method.
I
- InvalidDatabaseException - Exception in com.maxmind.db
-
Signals that there was an issue reading from the MaxMind DB file due to unexpected data formatting.
- InvalidDatabaseException(String) - Constructor for exception com.maxmind.db.InvalidDatabaseException
- InvalidDatabaseException(String, Throwable) - Constructor for exception com.maxmind.db.InvalidDatabaseException
- InvalidNetworkException - Exception in com.maxmind.db
-
This is a custom exception that is thrown when the user attempts to use an IPv6 address in an IPv4-only database.
- InvalidNetworkException(InetAddress) - Constructor for exception com.maxmind.db.InvalidNetworkException
L
- load(CacheKey) - Method in interface com.maxmind.db.NodeCache.Loader
M
- MaxMindDbConstructor - Annotation Interface in com.maxmind.db
-
MaxMindDbConstructor
is an annotation that can be used to mark a constructor that should be used to create an instance of a class when decoding a MaxMind DB file. - MaxMindDbParameter - Annotation Interface in com.maxmind.db
-
Interface for a MaxMind DB parameter.
- MEMORY - Enum constant in enum class com.maxmind.db.Reader.FileMode
-
Loads the database into memory when the reader is constructed.
- MEMORY_MAPPED - Enum constant in enum class com.maxmind.db.Reader.FileMode
-
The default file mode.
- Metadata - Class in com.maxmind.db
-
Metadata
holds data associated with the database itself. - Metadata(int, int, BigInteger, String, List<String>, Map<String, String>, int, long, int) - Constructor for class com.maxmind.db.Metadata
-
Constructs a
Metadata
object.
N
- name() - Element in annotation interface com.maxmind.db.MaxMindDbParameter
- Network - Class in com.maxmind.db
-
Network
represents an IP network. - Network(InetAddress, int) - Constructor for class com.maxmind.db.Network
-
Construct a
Network
- networks(boolean, Class<T>) - Method in class com.maxmind.db.Reader
-
Creates a Networks iterator.
- networks(Class<T>) - Method in class com.maxmind.db.Reader
-
Creates a Networks iterator and skips aliased networks.
- Networks<T> - Class in com.maxmind.db
-
Instances of this class provide an iterator over the networks in a database.
- NetworksIterationException - Exception in com.maxmind.db
-
This class represents an error encountered while iterating over the networks.
- networksWithin(Network, boolean, Class<T>) - Method in class com.maxmind.db.Reader
-
Returns an iterator within the specified network.
- next() - Method in class com.maxmind.db.Networks
-
Returns the next DataRecord.
- NoCache - Class in com.maxmind.db
-
A no-op cache singleton.
- NodeCache - Interface in com.maxmind.db
-
NodeCache is an interface for a cache that stores decoded values from the data section of the database.
- NodeCache.Loader - Interface in com.maxmind.db
-
A loader is used to load a value for a key that is not in the cache.
P
- ParameterNotFoundException - Exception in com.maxmind.db
-
Signals that no annotated parameter was found.
R
- Reader - Class in com.maxmind.db
-
Instances of this class provide a reader for the MaxMind DB format.
- Reader(File) - Constructor for class com.maxmind.db.Reader
-
Constructs a Reader for the MaxMind DB format, with no caching.
- Reader(File, NodeCache) - Constructor for class com.maxmind.db.Reader
-
Constructs a Reader for the MaxMind DB format, with the specified backing cache.
- Reader(File, Reader.FileMode) - Constructor for class com.maxmind.db.Reader
-
Constructs a Reader for the MaxMind DB format, with no caching.
- Reader(File, Reader.FileMode, NodeCache) - Constructor for class com.maxmind.db.Reader
-
Constructs a Reader for the MaxMind DB format, with the specified backing cache.
- Reader(InputStream) - Constructor for class com.maxmind.db.Reader
-
Constructs a Reader with no caching, as if in mode
Reader.FileMode.MEMORY
, without using aFile
instance. - Reader(InputStream, NodeCache) - Constructor for class com.maxmind.db.Reader
-
Constructs a Reader with the specified backing cache, as if in mode
Reader.FileMode.MEMORY
, without using aFile
instance. - Reader.FileMode - Enum Class in com.maxmind.db
-
The file mode to use when opening a MaxMind DB.
T
- toString() - Method in class com.maxmind.db.Metadata
- toString() - Method in class com.maxmind.db.Network
V
- valueOf(String) - Static method in enum class com.maxmind.db.Reader.FileMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.maxmind.db.Reader.FileMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form