Package | Description |
---|---|
net.sf.kdgcommons.buffer |
Classes for working with
java.nio.ByteBuffer s and their close kin. |
Modifier and Type | Class and Description |
---|---|
static class |
BufferFacadeFactory.ByteBufferFacade
A facade for a standard Java
ByteBuffer . |
static class |
BufferFacadeFactory.ByteBufferTLFacade
A facade for a standard Java
ByteBuffer that uses a
thread-local to allow concurrent access. |
static class |
BufferFacadeFactory.MappedFileBufferTLFacade
A facade for a
MappedFileBuffer that uses a thread-local to
allow concurrent access. |
class |
MappedFileBuffer
A wrapper for memory-mapped files that generally preserves the semantics of
ByteBuffer , while supporing files larger than 2 GB. |
Modifier and Type | Method and Description |
---|---|
static BufferFacade |
BufferFacadeFactory.create(ByteBuffer buf)
Creates an instance that accesses a standard
ByteBuffer . |
static BufferFacade |
BufferFacadeFactory.create(ByteBuffer buf,
long base)
Creates an instance that accesses a standard
ByteBuffer ,
with offsets relative to the specified base value. |
static BufferFacade |
BufferFacadeFactory.create(MappedFileBuffer buf)
Creates an instance that accesses a
MappedFileBuffer . |
static BufferFacade |
BufferFacadeFactory.create(MappedFileBuffer buf,
long base)
Creates an instance that accesses a
MappedFileBuffer , with
with offsets relative to the specified base value. |
static BufferFacade |
BufferFacadeFactory.createThreadsafe(ByteBuffer buf)
Creates a thread-safe instance that accesses a standard
ByteBuffer . |
static BufferFacade |
BufferFacadeFactory.createThreadsafe(ByteBuffer buf,
long base)
Creates a thread-safe instance that accesses a standard
ByteBuffer ,
with offsets relative to the specified base value. |
static BufferFacade |
BufferFacadeFactory.createThreadsafe(MappedFileBuffer buf)
Creates a thread-safe instance that accesses a
MappedFileBuffer . |
static BufferFacade |
BufferFacadeFactory.createThreadsafe(MappedFileBuffer buf,
long base)
Creates a thread-safe instance that accesses a
MappedFileBuffer ,
with offsets relative to the specified base value. |