org.freecompany.redline.header
public abstract class AbstractHeader.AbstractEntry<T> extends Object implements Entry<T>
Field Summary | |
---|---|
protected int | count |
protected int | offset |
protected int | size |
protected int | tag |
protected T | values |
Method Summary | |
---|---|
int | getOffset(int offset) |
int | getTag() |
abstract int | getType()
Returns the data type of this entry. |
T | getValues() |
void | index(ByteBuffer index, int position)
Writes the index entry into the provided buffer at the current position. |
abstract void | read(ByteBuffer buffer)
Reads this entries value from the provided buffer using the set count. |
boolean | ready()
Returns true if this entry is ready to write, indicated by the presence of
a set of values. |
void | setCount(int count) |
void | setOffset(int offset) |
void | setSize(int size) |
void | setTag(AbstractHeader.Tag tag) |
void | setTag(int tag) |
void | setValues(T values) |
abstract int | size()
Returns the size this entry will need in the provided data buffer to write
it's contents, corrected for any trailing zeros to fill to a boundary. |
String | toString() |
abstract void | write(ByteBuffer data)
Writes this entries index to the index buffer and its values to the output
channel provided. |