| Modifier and Type | Field and Description |
|---|---|
protected dap4.core.ce.CEConstraint |
ce |
protected dap4.core.data.ChecksumMode |
checksummode |
protected dap4.core.data.DSP |
dsp |
protected ByteOrder |
order |
protected OutputStream |
stream |
protected SerialWriter |
writer |
| Constructor and Description |
|---|
DapSerializer() |
DapSerializer(dap4.core.data.DSP dsp,
dap4.core.ce.CEConstraint constraint,
OutputStream stream,
ByteOrder order,
dap4.core.data.ChecksumMode mode)
Primary constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(dap4.core.dmr.DapDataset dmr) |
protected void |
writeAtomicVariable(dap4.core.data.DataCursor data,
SerialWriter dst)
Write out an atomic variable.
|
protected void |
writeRecord(dap4.core.data.DataCursor record,
SerialWriter dst)
Write out a single Record instance.
|
protected void |
writeSequence(dap4.core.data.DataCursor data,
SerialWriter dst)
Write out a single or array sequence instance
|
protected void |
writeSequence1(dap4.core.data.DataCursor instance,
SerialWriter dst)
Write out a single Sequence of records
(Eventually use any filter in the DapVariable)
|
protected void |
writeStructure(dap4.core.data.DataCursor data,
SerialWriter dst)
Write out a scalar or array structure instance
|
protected void |
writeStructure1(dap4.core.data.DataCursor instance,
SerialWriter dst)
Write out a single structure instance
|
protected void |
writeVariable(dap4.core.data.DataCursor data,
SerialWriter dst) |
protected OutputStream stream
protected SerialWriter writer
protected dap4.core.data.DSP dsp
protected dap4.core.ce.CEConstraint ce
protected ByteOrder order
protected dap4.core.data.ChecksumMode checksummode
public DapSerializer()
public DapSerializer(dap4.core.data.DSP dsp,
dap4.core.ce.CEConstraint constraint,
OutputStream stream,
ByteOrder order,
dap4.core.data.ChecksumMode mode)
throws IOException
dsp - The DSP to writeconstraint - Any applicable constraintstream - Write to this streamorder - The byte order to useIOExceptionpublic void write(dap4.core.dmr.DapDataset dmr)
throws IOException
IOExceptionprotected void writeVariable(dap4.core.data.DataCursor data,
SerialWriter dst)
throws IOException
data - - cursor referencing what to writedst - - where to writeIOExceptionprotected void writeAtomicVariable(dap4.core.data.DataCursor data,
SerialWriter dst)
throws IOException
data - dst - dap4.core.util.DapExceptionIOExceptionprotected void writeStructure(dap4.core.data.DataCursor data,
SerialWriter dst)
throws IOException
data - dst - - where to writedap4.core.util.DapExceptionIOExceptionprotected void writeStructure1(dap4.core.data.DataCursor instance,
SerialWriter dst)
throws IOException
instance - dst - - where to writedap4.core.util.DapExceptionIOExceptionprotected void writeSequence(dap4.core.data.DataCursor data,
SerialWriter dst)
throws IOException
data - dst - - where to writedap4.core.util.DapExceptionIOExceptionprotected void writeSequence1(dap4.core.data.DataCursor instance,
SerialWriter dst)
throws IOException
instance - the sequence instancedst - write targetdap4.core.util.DapExceptionIOExceptionprotected void writeRecord(dap4.core.data.DataCursor record,
SerialWriter dst)
throws IOException
record - the record data cursordst - to which to writedap4.core.util.DapExceptionIOException