| Modifier and Type | Class and Description |
|---|---|
| private static class | TempBufferHolder.
TempBufferHolder which has a hard reference to the buffer. |
| private static class | TempBufferHolder.
TempBufferHolder which has a no reference to the buffer. |
| private static class | TempBufferHolder.
TempBufferHolder which has a soft reference to the buffer. |
| public static enum | TempBufferHolder.
The caching type for the buffer holder. |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | autoRewind
whether or not every get automatically rewinds the buffer |
| private static final Reference | |
| private int | modCount
the mod count of the current buffer (changes on every realloc) |
| private final ByteOrder | order
ByteOrder for all allocated buffers |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public final ByteBuffer | getBuffer(int size)
Returns a ByteBuffer of at least the given size, with the limit set to the given size, and the predefined byteOrder. |
| public abstract ByteBuffer | Returns: the currently referenced buffer,null if noneReturns the currently referenced buffer, |
| public int | Returns: the modification count of the current buffer (this count is changed every time the buffer is reallocated)Returns the modification count of the current buffer (this count is changed every time the buffer is reallocated). |
| public final ByteBuffer | getPageBuffer(PageChannel pageChannel)
Returns a ByteBuffer of at least the defined page size, with the limit set to the page size, and the predefined byteOrder. |
| public static TempBufferHolder | newHolder(TempBufferHolder.
the type of reference desired for any created buffer type,whether or not every get automatically rewinds the buffer autoRewind)Creates a new TempBufferHolder. |
| public static TempBufferHolder | newHolder(TempBufferHolder.
the type of reference desired for any created buffer type,whether or not every get automatically rewinds the buffer autoRewind, ByteOrder byte order for all allocated buffers order)Creates a new TempBufferHolder. |
| protected abstract void |
| autoRewind | back to summary |
|---|---|
| private final boolean autoRewind whether or not every get automatically rewinds the buffer | |
| EMPTY_BUFFER_REF | back to summary |
|---|---|
| private static final Reference<ByteBuffer> EMPTY_BUFFER_REF | |
| modCount | back to summary |
|---|---|
| private int modCount the mod count of the current buffer (changes on every realloc) | |
| order | back to summary |
|---|---|
| private final ByteOrder order ByteOrder for all allocated buffers | |
| TempBufferHolder | back to summary |
|---|---|
| protected TempBufferHolder(boolean autoRewind, ByteOrder order) | |
| clear | back to summary |
|---|---|
| public abstract void clear() Releases any referenced memory. | |
| getBuffer | back to summary |
|---|---|
| public final ByteBuffer getBuffer(int size) Returns a ByteBuffer of at least the given size, with the limit set to the given size, and the predefined byteOrder. Will be rewound iff autoRewind is enabled for this buffer. | |
| getExistingBuffer | back to summary |
|---|---|
| public abstract ByteBuffer getExistingBuffer() Returns the currently referenced buffer,
| |
| getModCount | back to summary |
|---|---|
| public int getModCount() Returns the modification count of the current buffer (this count is changed every time the buffer is reallocated).
| |
| getPageBuffer | back to summary |
|---|---|
| public final ByteBuffer getPageBuffer(PageChannel pageChannel) Returns a ByteBuffer of at least the defined page size, with the limit set to the page size, and the predefined byteOrder. Will be rewound iff autoRewind is enabled for this buffer. | |
| newHolder | back to summary |
|---|---|
| public static TempBufferHolder newHolder(TempBufferHolder. Creates a new TempBufferHolder.
| |
| newHolder | back to summary |
|---|---|
| public static TempBufferHolder newHolder(TempBufferHolder. Creates a new TempBufferHolder.
| |
| setNewBuffer | back to summary |
|---|---|
| protected abstract void setNewBuffer(ByteBuffer newBuffer) Sets a new buffer for this holder. | |
| Modifier and Type | Field and Description |
|---|---|
| private ByteBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements abstract io. Releases any referenced memory. |
| public ByteBuffer | getExistingBuffer()
Implements abstract io. Returns the currently referenced buffer, |
| protected void | setNewBuffer(ByteBuffer newBuffer)
Implements abstract io. Sets a new buffer for this holder. |
| buffer | back to summary |
|---|---|
| private ByteBuffer buffer | |
| HardTempBufferHolder | back to summary |
|---|---|
| private HardTempBufferHolder(boolean autoRewind, ByteOrder order) | |
| clear | back to summary |
|---|---|
| public void clear() Implements abstract io. Doc from io. Releases any referenced memory.
| |
| getExistingBuffer | back to summary |
|---|---|
| public ByteBuffer getExistingBuffer() Implements abstract io. Doc from io. Returns the currently referenced buffer,
| |
| setNewBuffer | back to summary |
|---|---|
| protected void setNewBuffer(ByteBuffer newBuffer) Implements abstract io. Doc from io. Sets a new buffer for this holder.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements abstract io. Releases any referenced memory. |
| public ByteBuffer | getExistingBuffer()
Implements abstract io. Returns the currently referenced buffer, |
| protected void | setNewBuffer(ByteBuffer newBuffer)
Implements abstract io. Sets a new buffer for this holder. |
| NoneTempBufferHolder | back to summary |
|---|---|
| private NoneTempBufferHolder(boolean autoRewind, ByteOrder order) | |
| clear | back to summary |
|---|---|
| public void clear() Implements abstract io. Doc from io. Releases any referenced memory.
| |
| getExistingBuffer | back to summary |
|---|---|
| public ByteBuffer getExistingBuffer() Implements abstract io. Doc from io. Returns the currently referenced buffer,
| |
| setNewBuffer | back to summary |
|---|---|
| protected void setNewBuffer(ByteBuffer newBuffer) Implements abstract io. Doc from io. Sets a new buffer for this holder.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Reference |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements abstract io. Releases any referenced memory. |
| public ByteBuffer | getExistingBuffer()
Implements abstract io. Returns the currently referenced buffer, |
| protected void | setNewBuffer(ByteBuffer newBuffer)
Implements abstract io. Sets a new buffer for this holder. |
| buffer | back to summary |
|---|---|
| private Reference<ByteBuffer> buffer | |
| SoftTempBufferHolder | back to summary |
|---|---|
| private SoftTempBufferHolder(boolean autoRewind, ByteOrder order) | |
| clear | back to summary |
|---|---|
| public void clear() Implements abstract io. Doc from io. Releases any referenced memory.
| |
| getExistingBuffer | back to summary |
|---|---|
| public ByteBuffer getExistingBuffer() Implements abstract io. Doc from io. Returns the currently referenced buffer,
| |
| setNewBuffer | back to summary |
|---|---|
| protected void setNewBuffer(ByteBuffer newBuffer) Implements abstract io. Doc from io. Sets a new buffer for this holder.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TempBufferHolder. | HARD
a hard reference is maintained to the created buffer |
| public static final TempBufferHolder. | NONE
no reference is maintained to a created buffer (new buffer every time) |
| public static final TempBufferHolder. | SOFT
a soft reference is maintained to the created buffer (may be garbage collected if memory gets tight) |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TempBufferHolder. | |
| public static TempBufferHolder. |
| HARD | back to summary |
|---|---|
| public static final TempBufferHolder. a hard reference is maintained to the created buffer | |
| NONE | back to summary |
|---|---|
| public static final TempBufferHolder. no reference is maintained to a created buffer (new buffer every time) | |
| SOFT | back to summary |
|---|---|
| public static final TempBufferHolder. a soft reference is maintained to the created buffer (may be garbage collected if memory gets tight) | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static TempBufferHolder. | |
| values | back to summary |
|---|---|
| public static TempBufferHolder. | |