public abstract class AbstractBufferContext extends java.lang.Object implements BufferContext, HandlerVersionContext
| Constructor and Description |
|---|
AbstractBufferContext(Transaction transaction,
ReadBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
ReadBuffer |
buffer() |
ReadBuffer |
buffer(ReadBuffer buffer) |
ObjectContainerBase |
container() |
abstract int |
handlerVersion() |
boolean |
isLegacyHandlerVersion() |
ObjectContainer |
objectContainer() |
int |
offset()
returns the current offset in the buffer
|
BitMap4 |
readBitMap(int bitCount) |
byte |
readByte()
reads a byte from the buffer.
|
void |
readBytes(byte[] bytes)
reads an array of bytes from the buffer.
|
int |
readInt()
reads an int from the buffer.
|
long |
readLong()
reads a long from the buffer.
|
void |
seek(int offset)
positions the read pointer at the specified position
|
SlotFormat |
slotFormat() |
Transaction |
transaction() |
public AbstractBufferContext(Transaction transaction, ReadBuffer buffer)
public ReadBuffer buffer(ReadBuffer buffer)
public ReadBuffer buffer()
buffer in interface BufferContextpublic byte readByte()
ReadBufferreadByte in interface ReadBufferpublic void readBytes(byte[] bytes)
ReadBufferreadBytes in interface ReadBufferbytes - the byte array to read the bytes into.public int readInt()
ReadBufferreadInt in interface ReadBufferpublic long readLong()
ReadBufferreadLong in interface ReadBufferpublic int offset()
ReadBufferoffset in interface ReadBufferpublic void seek(int offset)
ReadBufferseek in interface ReadBufferoffset - the desired position in the bufferpublic ObjectContainerBase container()
public ObjectContainer objectContainer()
objectContainer in interface Contextpublic Transaction transaction()
transaction in interface Contextpublic abstract int handlerVersion()
handlerVersion in interface HandlerVersionContextpublic boolean isLegacyHandlerVersion()
public BitMap4 readBitMap(int bitCount)
readBitMap in interface ReadBufferpublic SlotFormat slotFormat()
slotFormat in interface HandlerVersionContext