Modifier and Type | Field and Description |
---|---|
protected CEConstraint |
ce |
protected DataDataset |
data |
protected DSP |
dsp |
protected ByteOrder |
order |
protected OutputStream |
stream |
protected SerialWriter |
writer |
Constructor and Description |
---|
DapSerializer() |
DapSerializer(DSP dsp,
CEConstraint constraint,
OutputStream stream,
ByteOrder order)
Primary constructor
|
Modifier and Type | Method and Description |
---|---|
void |
write(DapDataset dmr) |
protected void |
writeAtomicVariable(DapVariable vv,
DataVariable dv,
SerialWriter dst)
Write out an atomic variable.
|
protected void |
writeCompound(DapVariable vv,
DataCompound dc,
SerialWriter dst)
Write out a singleton compound variable.
|
protected void |
writeCompoundArray(DapVariable dapvar,
DataCompoundArray dca,
SerialWriter dst)
Write out a dimensioned ompound variable.
|
protected void |
writeRecord(DapVariable vv,
DataRecord dr,
SerialWriter dst)
Write out a single Record instance.
|
protected void |
writeSequence(DapVariable dapvar,
DataSequence ds,
SerialWriter dst)
Write out a single Sequence of records
(Eventually use any filter in the DapVariable)
|
protected void |
writeStructure(DapVariable vv,
DataStructure ds,
SerialWriter dst)
Write out a single structure instance.
|
protected void |
writeVariable(DapVariable dapvar,
DataVariable dv,
SerialWriter dst) |
protected OutputStream stream
protected SerialWriter writer
protected DSP dsp
protected DataDataset data
protected CEConstraint ce
protected ByteOrder order
public DapSerializer()
public DapSerializer(DSP dsp, CEConstraint constraint, OutputStream stream, ByteOrder order) throws IOException
dsp
- The DSP to writeconstraint
- Any applicable constraintstream
- Write to this streamorder
- The byte order to useIOException
public void write(DapDataset dmr) throws IOException
IOException
protected void writeVariable(DapVariable dapvar, DataVariable dv, SerialWriter dst) throws IOException
dapvar
- dv
- IOException
protected void writeAtomicVariable(DapVariable vv, DataVariable dv, SerialWriter dst) throws DataException
vv
- the atomic variabledv
- the variable's dataIOException
DataException
protected void writeStructure(DapVariable vv, DataStructure ds, SerialWriter dst) throws DataException
vv
- the structure viewds
- the structure dataDataException
protected void writeCompound(DapVariable vv, DataCompound dc, SerialWriter dst) throws DataException
vv
- the structure variabledc
- the dataDataException
protected void writeCompoundArray(DapVariable dapvar, DataCompoundArray dca, SerialWriter dst) throws DataException
dapvar
- the structure variabledca
- the array's dataDataException
protected void writeRecord(DapVariable vv, DataRecord dr, SerialWriter dst) throws DataException
vv
- the record viewdr
- the record dataDataException
protected void writeSequence(DapVariable dapvar, DataSequence ds, SerialWriter dst) throws DataException
dapvar
- the constraint viewds
- the structure dataDataException
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.