final class BufferHolder extends Object
| Constructor and Description |
|---|
BufferHolder(ByteBuffer buffer)Create a BufferHolder from a ByteBuffer. |
BufferHolder(File database,
Reader.FileMode mode)Create a BufferHolder from a database file. |
BufferHolder(InputStream stream)Construct a ThreadBuffer from the provided URL. |
| Modifier and Type | Method and Description |
|---|---|
(package private) ByteBuffer | get()Returns a duplicate of the underlying ByteBuffer. |
BufferHolder(ByteBuffer buffer)
buffer - the byte bufferBufferHolder(File database, Reader.FileMode mode) throws IOException
database - the database filemode - the file modeIOException - if the file cannot be readBufferHolder(InputStream stream) throws IOException
stream - the source of my bytes.IOException - if unable to read from your source.NullPointerException - if you provide a NULL InputStreamByteBuffer get()