Package dap4.dap4lib
Class FileDSP
- java.lang.Object
-
- dap4.dap4lib.AbstractDSP
-
- dap4.dap4lib.serial.D4DSP
-
- dap4.dap4lib.FileDSP
-
- All Implemented Interfaces:
dap4.core.data.DSP
public class FileDSP extends D4DSP
Provide a DSP interface to raw data
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]EXTENSIONSprotected byte[]raw-
Fields inherited from class dap4.dap4lib.serial.D4DSP
DAPVERSION, databuffer, DEBUG, 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 FileDSP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleandspMatch(String location, dap4.core.util.DapContext context)A path is file if it has no base protocol or is file:FileDSPopen(byte[] rawdata)FileDSPopen(String filepath)"open" a reference to a data source and return the DSP wrapper.-
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
-
EXTENSIONS
protected static final String[] EXTENSIONS
-
raw
protected byte[] raw
-
-
Method Detail
-
dspMatch
public boolean dspMatch(String location, dap4.core.util.DapContext context)
A path is file if it has no base protocol or is file:- Parameters:
location- file:/ or possibly an absolute pathcontext- 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:
closein interfacedap4.core.data.DSP- Specified by:
closein classAbstractDSP
-
open
public FileDSP open(String filepath) throws dap4.core.util.DapException
Description copied from class:AbstractDSP"open" a reference to a data source and return the DSP wrapper.- Specified by:
openin interfacedap4.core.data.DSP- Specified by:
openin classAbstractDSP- Parameters:
filepath- - Object that defines the data source- Returns:
- = wrapping dsp
- Throws:
dap4.core.util.DapException
-
open
public FileDSP open(byte[] rawdata) throws dap4.core.util.DapException
- Throws:
dap4.core.util.DapException
-
-