Package com.maxmind.db
Class BufferHolder
java.lang.Object
com.maxmind.db.BufferHolder
-
Constructor Summary
ConstructorDescriptionBufferHolder
(File database, Reader.FileMode mode) BufferHolder
(InputStream stream) Construct a ThreadBuffer from the provided URL.BufferHolder
(ByteBuffer buffer) -
Method Summary
-
Constructor Details
-
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 Details
-
get
ByteBuffer get()
-