Package dap4.servlet

Class SynDSP

  • All Implemented Interfaces:
    dap4.core.data.DSP

    public class SynDSP
    extends dap4.dap4lib.serial.D4DSP
    Provide a DSP interface to synthetic data (see Generator.java).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static boolean DEBUG  
      protected byte[] raw  
      protected static String[] SYNEXTENSIONS  
      • Fields inherited from class dap4.dap4lib.serial.D4DSP

        DAPVERSION, databuffer, DMRVERSION, DUMPDAP, DUMPDMR
      • 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
      SynDSP()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean dspMatch​(String path, dap4.core.util.DapContext context)
      A path is a Synthetic path if it ends in .dmr or .syn
      SynDSP open​(String filepath)  
      • Methods inherited from class dap4.dap4lib.serial.D4DSP

        build, build
      • Methods inherited from class dap4.dap4lib.AbstractDSP

        addVariableData, getChecksumMode, getContext, getDMR, getLocation, getOrder, getVariableData, parseDMR, printDMR, processAttributes, setChecksumMode, setContext, setDataset, setDMR, setLocation, setOrder, suppress
    • Field Detail

      • SYNEXTENSIONS

        protected static final String[] SYNEXTENSIONS
      • raw

        protected byte[] raw
    • Constructor Detail

      • SynDSP

        public SynDSP()
    • Method Detail

      • dspMatch

        public boolean dspMatch​(String path,
                                dap4.core.util.DapContext context)
        A path is a Synthetic path if it ends in .dmr or .syn
        Parameters:
        path -
        context - Any parameters that may help to decide.
        Returns:
        true if this path appears to be processible by this DSP
      • close

        public void close()
        Specified by:
        close in interface dap4.core.data.DSP
        Specified by:
        close in class dap4.dap4lib.AbstractDSP
      • open

        public SynDSP open​(String filepath)
                    throws dap4.core.util.DapException
        Specified by:
        open in interface dap4.core.data.DSP
        Specified by:
        open in class dap4.dap4lib.AbstractDSP
        Throws:
        dap4.core.util.DapException