Package dap4.dap4lib.serial
Class D4DSP
- java.lang.Object
-
- dap4.dap4lib.AbstractDSP
-
- dap4.dap4lib.serial.D4DSP
-
- All Implemented Interfaces:
dap4.core.data.DSP
public abstract class D4DSP extends AbstractDSP
DAP4 Serial to DSP interface This code should be completely independent of thredds. Its goal is to provide a DSP interface to a sequence of bytes representing serialized data, possibly including a leading DMR.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDAPVERSIONprotected ByteBufferdatabufferstatic booleanDEBUGprotected static StringDMRVERSIONstatic booleanDUMPDAPstatic booleanDUMPDMR-
Fields inherited from class dap4.dap4lib.AbstractDSP
context, dmr, DMRNS, location, PARSEDEBUG, rootcursor, TESTING, UCARTAGOPAQUE, UCARTAGORIGTYPE, UCARTAGUNLIMITED, UCARTAGVLEN, USEDOM, variables
-
-
Constructor Summary
Constructors Constructor Description D4DSP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuild(dap4.core.dmr.DapDataset dmr, byte[] serialdata, ByteOrder order)Build the data from the incoming serial data Note that some DSP's will not useprotected voidbuild(String document, byte[] serialdata, ByteOrder order)-
Methods inherited from class dap4.dap4lib.AbstractDSP
addVariableData, close, getChecksumMode, getContext, getDMR, getLocation, getOrder, getVariableData, open, parseDMR, printDMR, processAttributes, setChecksumMode, setContext, setDataset, setDMR, setLocation, setOrder, suppress
-
-
-
-
Field Detail
-
DEBUG
public static boolean DEBUG
-
DUMPDMR
public static boolean DUMPDMR
-
DUMPDAP
public static boolean DUMPDAP
-
DAPVERSION
protected static final String DAPVERSION
- See Also:
- Constant Field Values
-
DMRVERSION
protected static final String DMRVERSION
- See Also:
- Constant Field Values
-
databuffer
protected ByteBuffer databuffer
-
-
Method Detail
-
build
protected void build(String document, byte[] serialdata, ByteOrder order) throws dap4.core.util.DapException
- Throws:
dap4.core.util.DapException
-
build
protected void build(dap4.core.dmr.DapDataset dmr, byte[] serialdata, ByteOrder order) throws dap4.core.util.DapExceptionBuild the data from the incoming serial data Note that some DSP's will not use- Parameters:
dmr-serialdata-order-- Throws:
dap4.core.util.DapException
-
-