Package com.maxmind.db
Class BufferHolder
- java.lang.Object
-
- com.maxmind.db.BufferHolder
-
final class BufferHolder extends Object
-
-
Constructor Summary
Constructors Constructor Description BufferHolder(File database, Reader.FileMode mode)
BufferHolder(InputStream stream)
Construct a ThreadBuffer from the provided URL.BufferHolder(ByteBuffer buffer)
-
-
-
Constructor Detail
-
BufferHolder
BufferHolder(File database, Reader.FileMode mode) throws IOException
- Throws:
IOException
-
BufferHolder
BufferHolder(InputStream stream) throws IOException
Construct a ThreadBuffer from the provided URL.- Parameters:
stream
- the source of my bytes.- Throws:
IOException
- if unable to read from your source.NullPointerException
- if you provide a NULL InputStream
-
BufferHolder
BufferHolder(ByteBuffer buffer)
-
-
Method Detail
-
get
ByteBuffer get()
-
-