com.maxmind.db

## Class Decoder

- java.lang.Object
- - com.maxmind.db.Decoder

-     final class Decoder
      extends Object

  Decoder for MaxMind DB data.

  This class CANNOT be shared between threads

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `(package private) static class` | `Decoder.Type` Enumeration of data types supported in MaxMind DB format.

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) boolean` | `POINTER_TEST_HACK`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Decoder(NodeCache cache, ByteBuffer buffer, long pointerBase)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `(package private) Object` | `decode()`
    `(package private) Object` | `decode(int offset)`
    `(package private) static int` | `decodeInteger(ByteBuffer buffer, int base, int size)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### POINTER_TEST_HACK

          boolean POINTER_TEST_HACK

  - ### Constructor Detail

    - #### Decoder

          Decoder(NodeCache cache,
                  ByteBuffer buffer,
                  long pointerBase)

  - ### Method Detail

    - #### decode

          Object decode()
                 throws IOException

      Throws:
        `IOException`

    - #### decode

          Object decode(int offset)
                 throws IOException

      Throws:
        `IOException`

    - #### decodeInteger

          static int decodeInteger(ByteBuffer buffer,
                                   int base,
                                   int size)