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)
-
Method Summary
Modifier and Type Method Description (package private) ByteBuffer
get()
-
Constructor Details
-
BufferHolder
- Throws:
IOException
-
BufferHolder
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()
-