com.kenai.jaffl.provider

Class AbstractBufferMemoryIO

public abstract class AbstractBufferMemoryIO extends AbstractMemoryIO

Field Summary
protected ByteBufferbuffer
Constructor Summary
AbstractBufferMemoryIO(ByteBuffer buffer)
Method Summary
bytegetByte(long offset)
ByteBuffergetByteBuffer()
doublegetDouble(long offset)
floatgetFloat(long offset)
intgetInt(long offset)
longgetLong(long offset)
shortgetShort(long offset)
StringgetString(long offset, int size)
booleanisDirect()
voidputByte(long offset, byte value)
voidputDouble(long offset, double value)
voidputFloat(long offset, float value)
voidputInt(long offset, int value)
voidputLong(long offset, long value)
voidputShort(long offset, short value)
voidputString(long offset, String string)

Field Detail

buffer

protected final ByteBuffer buffer

Constructor Detail

AbstractBufferMemoryIO

public AbstractBufferMemoryIO(ByteBuffer buffer)

Method Detail

getByte

public byte getByte(long offset)

getByteBuffer

public final ByteBuffer getByteBuffer()

getDouble

public double getDouble(long offset)

getFloat

public float getFloat(long offset)

getInt

public int getInt(long offset)

getLong

public long getLong(long offset)

getShort

public short getShort(long offset)

getString

public String getString(long offset, int size)

isDirect

public final boolean isDirect()

putByte

public void putByte(long offset, byte value)

putDouble

public void putDouble(long offset, double value)

putFloat

public void putFloat(long offset, float value)

putInt

public void putInt(long offset, int value)

putLong

public void putLong(long offset, long value)

putShort

public void putShort(long offset, short value)

putString

public void putString(long offset, String string)