|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.healthmarketscience.jackcess.TempBufferHolder
public abstract class TempBufferHolder
Manages a reference to a ByteBuffer.
Nested Class Summary | |
---|---|
static class |
TempBufferHolder.Type
The caching type for the buffer holder. |
Method Summary | |
---|---|
abstract void |
clear()
Releases any referenced memory. |
ByteBuffer |
getBuffer(PageChannel pageChannel,
int size)
Returns a ByteBuffer of at least the given size, with the limit set to the given size, and the predefined byteOrder. |
abstract ByteBuffer |
getExistingBuffer()
|
int |
getModCount()
|
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. |
static TempBufferHolder |
newHolder(TempBufferHolder.Type type,
boolean autoRewind)
Creates a new TempBufferHolder. |
static TempBufferHolder |
newHolder(TempBufferHolder.Type type,
boolean autoRewind,
ByteOrder order)
Creates a new TempBufferHolder. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getModCount()
public static TempBufferHolder newHolder(TempBufferHolder.Type type, boolean autoRewind)
type
- the type of reference desired for any created bufferautoRewind
- whether or not every get automatically rewinds the
bufferpublic static TempBufferHolder newHolder(TempBufferHolder.Type type, boolean autoRewind, ByteOrder order)
type
- the type of reference desired for any created bufferautoRewind
- whether or not every get automatically rewinds the
bufferorder
- byte order for all allocated bufferspublic final ByteBuffer getPageBuffer(PageChannel pageChannel)
public final ByteBuffer getBuffer(PageChannel pageChannel, int size)
public abstract ByteBuffer getExistingBuffer()
null
if nonepublic abstract void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |