Package com.db4o.internal
Class AbstractBufferContext
- java.lang.Object
- 
- com.db4o.internal.AbstractBufferContext
 
- 
- All Implemented Interfaces:
- HandlerVersionContext,- BufferContext,- Context,- ReadBuffer
 - Direct Known Subclasses:
- AbstractReadContext
 
 public abstract class AbstractBufferContext extends java.lang.Object implements BufferContext, HandlerVersionContext 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractBufferContext(Transaction transaction, ReadBuffer buffer)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ReadBufferbuffer()ReadBufferbuffer(ReadBuffer buffer)ObjectContainerBasecontainer()abstract inthandlerVersion()booleanisLegacyHandlerVersion()ObjectContainerobjectContainer()intoffset()returns the current offset in the bufferBitMap4readBitMap(int bitCount)bytereadByte()reads a byte from the buffer.voidreadBytes(byte[] bytes)reads an array of bytes from the buffer.intreadInt()reads an int from the buffer.longreadLong()reads a long from the buffer.voidseek(int offset)positions the read pointer at the specified positionSlotFormatslotFormat()Transactiontransaction()
 
- 
- 
- 
Constructor Detail- 
AbstractBufferContextpublic AbstractBufferContext(Transaction transaction, ReadBuffer buffer) 
 
- 
 - 
Method Detail- 
bufferpublic ReadBuffer buffer(ReadBuffer buffer) 
 - 
bufferpublic ReadBuffer buffer() - Specified by:
- bufferin interface- BufferContext
 
 - 
readBytepublic byte readByte() Description copied from interface:ReadBufferreads a byte from the buffer.- Specified by:
- readBytein interface- ReadBuffer
- Returns:
- the byte
 
 - 
readBytespublic void readBytes(byte[] bytes) Description copied from interface:ReadBufferreads an array of bytes from the buffer. The length of the array that is passed as a parameter specifies the number of bytes that are to be read. The passed bytes buffer parameter is directly filled.- Specified by:
- readBytesin interface- ReadBuffer
- Parameters:
- bytes- the byte array to read the bytes into.
 
 - 
readIntpublic int readInt() Description copied from interface:ReadBufferreads an int from the buffer.- Specified by:
- readIntin interface- ReadBuffer
- Returns:
- the int
 
 - 
readLongpublic long readLong() Description copied from interface:ReadBufferreads a long from the buffer.- Specified by:
- readLongin interface- ReadBuffer
- Returns:
- the long
 
 - 
offsetpublic int offset() Description copied from interface:ReadBufferreturns the current offset in the buffer- Specified by:
- offsetin interface- ReadBuffer
- Returns:
- the offset
 
 - 
seekpublic void seek(int offset) Description copied from interface:ReadBufferpositions the read pointer at the specified position- Specified by:
- seekin interface- ReadBuffer
- Parameters:
- offset- the desired position in the buffer
 
 - 
containerpublic ObjectContainerBase container() 
 - 
objectContainerpublic ObjectContainer objectContainer() - Specified by:
- objectContainerin interface- Context
 
 - 
transactionpublic Transaction transaction() - Specified by:
- transactionin interface- Context
 
 - 
handlerVersionpublic abstract int handlerVersion() - Specified by:
- handlerVersionin interface- HandlerVersionContext
 
 - 
isLegacyHandlerVersionpublic boolean isLegacyHandlerVersion() 
 - 
readBitMappublic BitMap4 readBitMap(int bitCount) - Specified by:
- readBitMapin interface- ReadBuffer
 
 - 
slotFormatpublic SlotFormat slotFormat() - Specified by:
- slotFormatin interface- HandlerVersionContext
 
 
- 
 
-