org.xerial.db.cache
Class BufferWriter
java.lang.Object
org.xerial.db.cache.BufferWriter
public class BufferWriter
- extends Object
BufferWriter is a helper class to support sequential write to the buffer
- Author:
- leo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferWriter
public BufferWriter(Buffer buffer)
- Creates the
BufferWriter
- Parameters:
buffer - the buffer to write the data
BufferWriter
public BufferWriter(Buffer buffer,
int offset)
- Creates the
BufferWriter
- Parameters:
buffer - the buffer to write the dataoffset - the byte offset from which the data writing starts
getCursorPosition
public int getCursorPosition()
writeInt
public void writeInt(int value)
writeByte
public void writeByte(byte value)
writeLong
public void writeLong(long value)
writeBoolean
public void writeBoolean(boolean value)

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.