| Modifier and Type | Field and Description |
|---|---|
protected CEConstraint |
ce |
protected DataDataset |
data |
protected DapDataset |
dmr |
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() |
protected void |
writeAtomicVariable(DapVariable vv,
DataVariable dv)
Write out an atomic variable.
|
protected void |
writeCompound(DapVariable vv,
DataCompound dc)
Write out a singleton compound variable.
|
protected void |
writeCompoundArray(DapVariable dapvar,
DataCompoundArray dca)
Write out a dimensioned ompound variable.
|
protected void |
writeRecord(DapVariable vv,
DataRecord dr)
Write out a single Record instance.
|
protected void |
writeSequence(DapVariable dapvar,
DataSequence ds)
Write out a single Sequence of records
(Eventually use any filter in the DapVariable)
|
protected void |
writeStructure(DapVariable vv,
DataStructure ds)
Write out a single structure instance.
|
protected void |
writeVariable(DapVariable dapvar,
DataVariable dv) |
protected OutputStream stream
protected SerialWriter writer
protected DSP dsp
protected DapDataset dmr
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 useIOExceptionpublic void write()
throws IOException
IOExceptionprotected void writeVariable(DapVariable dapvar, DataVariable dv) throws IOException
dapvar - dv - IOExceptionprotected void writeAtomicVariable(DapVariable vv, DataVariable dv) throws DataException
vv - the atomic variabledv - the variable's dataIOExceptionDataExceptionprotected void writeStructure(DapVariable vv, DataStructure ds) throws DataException
vv - the structure viewds - the structure dataDataExceptionprotected void writeCompound(DapVariable vv, DataCompound dc) throws DataException
vv - the structure variabledc - the dataDataExceptionprotected void writeCompoundArray(DapVariable dapvar, DataCompoundArray dca) throws DataException
dapvar - the structure variabledca - the array's dataDataExceptionprotected void writeRecord(DapVariable vv, DataRecord dr) throws DataException
vv - the record viewdr - the record dataDataExceptionprotected void writeSequence(DapVariable dapvar, DataSequence ds) throws DataException
dapvar - the constraint viewds - the structure dataDataExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.