public class DataBlockHeaderImpl extends Object implements DataBlockHeader
| Modifier and Type | Field and Description |
|---|---|
static int |
MARKER_INDEX |
static int |
NEXT_INDEX |
static int |
NEXTSTREAM_INDEX |
static int |
PREVIOUS_INDEX |
HEADER_SIZE| Constructor and Description |
|---|
DataBlockHeaderImpl(ByteBuffer byteBuffer) |
| Modifier and Type | Method and Description |
|---|---|
int |
getInt(int offset) |
long |
getLong(int offset) |
long |
getNext() |
long |
getNextStream() |
long |
getPrevious() |
void |
incrementMarker(int amount) |
int |
marker() |
int |
markerWithHeader() |
void |
putInt(int offset,
int value) |
void |
putLong(int offset,
long value) |
void |
resetMarker() |
void |
setNext(long next) |
void |
setNextStream(long nextStreamLocation) |
void |
setPrevious(long previous) |
String |
toString() |
public static final int PREVIOUS_INDEX
public static final int NEXT_INDEX
public static final int NEXTSTREAM_INDEX
public static final int MARKER_INDEX
public DataBlockHeaderImpl(ByteBuffer byteBuffer)
public long getNext()
getNext in interface DataBlockHeaderpublic long getPrevious()
getPrevious in interface DataBlockHeaderpublic void setNext(long next)
setNext in interface DataBlockHeaderpublic void setPrevious(long previous)
setPrevious in interface DataBlockHeaderpublic int marker()
marker in interface DataBlockHeaderpublic int markerWithHeader()
markerWithHeader in interface DataBlockHeaderpublic void setNextStream(long nextStreamLocation)
setNextStream in interface DataBlockHeaderpublic long getNextStream()
getNextStream in interface DataBlockHeaderpublic void incrementMarker(int amount)
incrementMarker in interface DataBlockHeaderpublic void resetMarker()
resetMarker in interface DataBlockHeaderpublic void putLong(int offset,
long value)
throws JasDBStorageException
putLong in interface DataBlockHeaderJasDBStorageExceptionpublic void putInt(int offset,
int value)
throws JasDBStorageException
putInt in interface DataBlockHeaderJasDBStorageExceptionpublic long getLong(int offset)
throws JasDBStorageException
getLong in interface DataBlockHeaderJasDBStorageExceptionpublic int getInt(int offset)
throws JasDBStorageException
getInt in interface DataBlockHeaderJasDBStorageExceptionCopyright © 2015. All rights reserved.