| Modifier and Type | Field and Description |
|---|---|
protected DapContext |
context |
protected static java.lang.String |
DAPVERSION |
protected static boolean |
DEBUG |
protected DapDataset |
dmr |
protected static java.lang.String |
DMRNS |
protected static java.lang.String |
DMRVERSION |
protected java.lang.String |
location |
protected static boolean |
PARSEDEBUG |
protected DataCursor |
rootcursor |
static boolean |
TESTING |
static java.lang.String |
UCARTAGOPAQUE |
static java.lang.String |
UCARTAGORIGTYPE |
static java.lang.String |
UCARTAGUNLIMITED |
static java.lang.String |
UCARTAGVLEN |
static boolean |
USEDOM |
protected java.util.Map<DapVariable,DataCursor> |
variables |
| Constructor and Description |
|---|
AbstractDSP() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariableData(DapVariable var,
DataCursor cursor) |
abstract void |
close() |
ChecksumMode |
getChecksumMode() |
DapContext |
getContext() |
DapDataset |
getDMR() |
java.lang.String |
getLocation() |
java.nio.ByteOrder |
getOrder() |
DataCursor |
getVariableData(DapVariable var) |
abstract AbstractDSP |
open(java.lang.String location)
"open" a reference to a data source and return the DSP wrapper.
|
protected DapDataset |
parseDMR(java.lang.String document)
It is common to want to parse a DMR text to a DapDataset,
so provide this utility.
|
static java.lang.String |
printDMR(DapDataset dmr) |
protected void |
processAttributes(DapDataset dataset)
Walk the dataset tree and remove selected attributes
such as _Unsigned
|
AbstractDSP |
setChecksumMode(ChecksumMode mode) |
void |
setContext(DapContext context) |
protected void |
setDataset(DapDataset dataset) |
void |
setDMR(DapDataset dmr) |
AbstractDSP |
setLocation(java.lang.String loc) |
AbstractDSP |
setOrder(java.nio.ByteOrder order) |
protected boolean |
suppress(java.lang.String attrname)
Some attributes that are added by the NetcdfDataset
need to be kept out of the DMR.
|
public static boolean TESTING
protected static final boolean DEBUG
protected static final boolean PARSEDEBUG
public static final boolean USEDOM
protected static final java.lang.String DAPVERSION
protected static final java.lang.String DMRVERSION
protected static final java.lang.String DMRNS
public static final java.lang.String UCARTAGVLEN
public static final java.lang.String UCARTAGOPAQUE
public static final java.lang.String UCARTAGORIGTYPE
public static final java.lang.String UCARTAGUNLIMITED
protected DapContext context
protected DapDataset dmr
protected java.lang.String location
protected java.util.Map<DapVariable,DataCursor> variables
protected DataCursor rootcursor
public abstract AbstractDSP open(java.lang.String location) throws DapException
open in interface DSPlocation - - Object that defines the data sourceDapExceptionpublic abstract void close()
throws java.io.IOException
public DataCursor getVariableData(DapVariable var) throws DapException
getVariableData in interface DSPDapExceptionpublic DapContext getContext()
getContext in interface DSPpublic java.lang.String getLocation()
getLocation in interface DSPpublic AbstractDSP setLocation(java.lang.String loc)
setLocation in interface DSPpublic DapDataset getDMR()
public void setContext(DapContext context)
setContext in interface DSPpublic void setDMR(DapDataset dmr)
protected void setDataset(DapDataset dataset) throws DapException
DapExceptionpublic AbstractDSP setOrder(java.nio.ByteOrder order)
public ChecksumMode getChecksumMode()
getChecksumMode in interface DSPpublic AbstractDSP setChecksumMode(ChecksumMode mode)
public void addVariableData(DapVariable var, DataCursor cursor)
protected DapDataset parseDMR(java.lang.String document) throws DapException
document - the dmr to parseDapException - on parse errorsprotected void processAttributes(DapDataset dataset) throws DapException
dataset - DapExceptionprotected boolean suppress(java.lang.String attrname)
attrname - A non-escaped attribute name to be tested for suppressionpublic static java.lang.String printDMR(DapDataset dmr)