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 dap4.core.dmr.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(dap4.core.dmr.DapVariable dapvar) |
protected D4DataVariable |
compileVar(dap4.core.dmr.DapVariable dapvar) |
protected static int |
computeTypeSize(dap4.core.dmr.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 dap4.core.dmr.DapDataset dataset
protected java.nio.ByteBuffer databuffer
protected ChecksumMode checksummode
protected D4DSP dsp
public DataCompiler(D4DSP dsp, ChecksumMode checksummode, java.nio.ByteBuffer databuffer) throws dap4.core.util.DapException
dsp - the D4DSPchecksummode - databuffer - the source of serialized databufferdap4.core.util.DapExceptionpublic void compile()
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected D4DataVariable compileVar(dap4.core.dmr.DapVariable dapvar) throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected D4DataAtomic compileAtomicVar(dap4.core.dmr.DapVariable dapvar) throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected byte[] getChecksum(java.nio.ByteBuffer data)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected static void skip(java.nio.ByteBuffer data,
int count)
protected static int getCount(java.nio.ByteBuffer data)
protected static int computeTypeSize(dap4.core.dmr.DapType daptype)
daptype - protected static long walkByteStrings(int[] positions,
java.nio.ByteBuffer databuffer)