public abstract class D4DSP
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ChecksumMode |
checksummode |
protected java.util.Map<DapVariable,D4Array> |
datamap |
static boolean |
DEBUG |
protected DapDataset |
dmr |
protected java.lang.String |
dmrtext |
protected java.lang.String |
location |
protected RequestMode |
mode |
protected static boolean |
PARSEDEBUG |
protected java.nio.ByteOrder |
remoteorder |
protected DeChunkedInputStream |
stream |
protected boolean |
streamclosed |
protected XURI |
xuri |
Constructor and Description |
---|
D4DSP() |
Modifier and Type | Method and Description |
---|---|
protected void |
addVariableData(DapVariable var,
D4Array cursor) |
abstract boolean |
dspMatch(java.lang.String path,
DapContext context)
Determine if a path refers to an object processable by this DSP
|
java.util.Map<DapVariable,java.lang.Long> |
getChecksumMap(DapConstants.ChecksumSource src) |
ChecksumMode |
getChecksumMode() |
DapDataset |
getDMR() |
protected java.lang.String |
getMethodUrl(RequestMode mode,
ChecksumMode csum) |
DeChunkedInputStream |
getStream() |
java.util.Map<DapVariable,D4Array> |
getVariableDataMap() |
void |
loadContext(DapContext cxt,
RequestMode mode) |
void |
loadDAP() |
void |
loadDMR()
Extract the DMR from available dechunked data
|
D4DSP |
open(java.lang.String location,
ChecksumMode cmode)
"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.
|
protected void |
parseURL(java.lang.String url) |
protected void |
processAttributes(DapDataset dataset)
Walk the dataset tree and remove selected attributes
such as _Unsigned
|
protected void |
processMaps(DapDataset dataset)
Walk the dataset tree and link |
protected java.lang.String |
readDMR() |
protected void |
reportError(java.lang.String errmsg) |
protected void |
setDMR(DapDataset dmr) |
protected D4DSP |
setStream(java.io.InputStream input,
RequestMode mode) |
protected boolean |
suppressAttributes(java.lang.String attrname)
Some attributes that are added by the NetcdfDataset
need to be kept out of the DMR.
|
public static boolean DEBUG
protected static final boolean PARSEDEBUG
protected java.lang.String dmrtext
protected DapDataset dmr
protected java.lang.String location
protected DeChunkedInputStream stream
protected boolean streamclosed
protected XURI xuri
protected java.nio.ByteOrder remoteorder
protected ChecksumMode checksummode
protected RequestMode mode
protected java.util.Map<DapVariable,D4Array> datamap
public D4DSP open(java.lang.String location, ChecksumMode cmode) throws DapException
location
- - Object that defines the data sourcecmode
- DapException
public DeChunkedInputStream getStream()
public ChecksumMode getChecksumMode()
public java.util.Map<DapVariable,D4Array> getVariableDataMap()
public java.util.Map<DapVariable,java.lang.Long> getChecksumMap(DapConstants.ChecksumSource src)
protected D4DSP setStream(java.io.InputStream input, RequestMode mode) throws java.io.IOException
java.io.IOException
protected void addVariableData(DapVariable var, D4Array cursor)
public DapDataset getDMR()
protected void setDMR(DapDataset dmr)
public abstract boolean dspMatch(java.lang.String path, DapContext context)
path
- context
- public void loadDMR() throws java.io.IOException
DapException
java.io.IOException
public void loadDAP() throws java.io.IOException
java.io.IOException
public void loadContext(DapContext cxt, RequestMode mode)
protected java.lang.String readDMR() throws java.io.IOException
java.io.IOException
protected void parseURL(java.lang.String url) throws DapException
DapException
protected java.lang.String getMethodUrl(RequestMode mode, ChecksumMode csum) throws DapException
DapException
protected DapDataset parseDMR(java.lang.String document) throws DapException
document
- the dmr to parseDapException
- on parse errorsprotected boolean suppressAttributes(java.lang.String attrname)
attrname
- protected void processAttributes(DapDataset dataset) throws DapException
dataset
- DapException
protected void processMaps(DapDataset dataset) throws DapException