public class DataCompiler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ChecksumMode |
checksummode |
static int |
COUNTSIZE |
protected D4DataDataset |
d4dataset |
protected java.nio.ByteBuffer |
databuffer |
protected DapDataset |
dataset |
static boolean |
DEBUG |
protected D4DSP |
dsp |
Constructor and Description |
---|
DataCompiler(D4DSP dsp,
ChecksumMode checksummode,
java.nio.ByteBuffer databuffer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
compile()
The goal here is to process the serialized
databuffer and locate variable-specific positions
in the serialized databuffer.
|
protected D4DataAtomic |
compileAtomicVar(DapVariable dapvar) |
protected D4DataVariable |
compileVar(DapVariable dapvar) |
protected static int |
computeTypeSize(DapType daptype)
Compute the size in databuffer of the serialized form
|
protected byte[] |
getChecksum(java.nio.ByteBuffer data) |
protected static int |
getCount(java.nio.ByteBuffer data) |
protected static void |
skip(java.nio.ByteBuffer data,
int count) |
protected static long |
walkByteStrings(int[] positions,
java.nio.ByteBuffer databuffer) |
public static boolean DEBUG
public static final int COUNTSIZE
protected D4DataDataset d4dataset
protected DapDataset dataset
protected java.nio.ByteBuffer databuffer
protected ChecksumMode checksummode
protected D4DSP dsp
public DataCompiler(D4DSP dsp, ChecksumMode checksummode, java.nio.ByteBuffer databuffer) throws DapException
dsp
- the D4DSPchecksummode
- databuffer
- the source of serialized databufferDapException
public void compile() throws DapException
DapException
protected D4DataVariable compileVar(DapVariable dapvar) throws DapException
DapException
protected D4DataAtomic compileAtomicVar(DapVariable dapvar) throws DapException
DapException
protected byte[] getChecksum(java.nio.ByteBuffer data) throws DapException
DapException
protected static void skip(java.nio.ByteBuffer data, int count)
protected static int getCount(java.nio.ByteBuffer data)
protected static int computeTypeSize(DapType daptype)
daptype
- protected static long walkByteStrings(int[] positions, java.nio.ByteBuffer databuffer)