public abstract class RawChunk extends Object
Modifier and Type | Field and Description |
---|---|
private int |
cursor |
private byte[] |
data |
static int |
ENCODING_SPACE_DOUBLE |
static int |
ENCODING_SPACE_INT |
static int |
ENCODING_SPACE_LONG |
private boolean |
open |
Modifier | Constructor and Description |
---|---|
protected |
RawChunk(byte[] buffer) |
protected |
RawChunk(int capacity) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addByte(byte b) |
protected boolean |
addDouble(double d) |
protected void |
addDoubleUnchecked(double d) |
protected boolean |
addInt(int i) |
protected void |
addIntUnchecked(int i) |
protected boolean |
addLong(long l) |
protected void |
addLongUnchecked(long l) |
protected boolean |
addString(String str) |
protected boolean |
addStringInternal(char[] backingChars) |
void |
close() |
protected int |
getPosition() |
protected boolean |
hasRoom(int bytes) |
private void |
putInt(int value) |
protected void |
putIntAt(int index,
int value) |
private void |
putLong(long value) |
protected void |
resetImpl() |
protected void |
seek(int pos) |
void |
write(OutputStream outputStream) |
public static final int ENCODING_SPACE_INT
public static final int ENCODING_SPACE_LONG
public static final int ENCODING_SPACE_DOUBLE
private final byte[] data
private int cursor
private boolean open
protected RawChunk(byte[] buffer)
protected RawChunk(int capacity)
public void close()
public final void write(OutputStream outputStream) throws IOException
IOException
protected void resetImpl()
protected int getPosition()
protected void seek(int pos)
protected final boolean hasRoom(int bytes)
protected final boolean addLong(long l)
protected final void addLongUnchecked(long l)
protected final boolean addDouble(double d)
protected final void addDoubleUnchecked(double d)
protected final boolean addInt(int i)
protected final void addIntUnchecked(int i)
protected final boolean addByte(byte b)
protected boolean addStringInternal(char[] backingChars)
private void putLong(long value)
private void putInt(int value)
protected void putIntAt(int index, int value)