public class Nc4DSP extends AbstractDSP
Modifier and Type | Class and Description |
---|---|
static class |
Nc4DSP.Nc4Pointer
Provide a wrapper for pointers that tracks the size.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Nc4Notes.NoteSort,java.util.Map<java.lang.Long,Nc4Notes.Notes>> |
allnotes |
protected boolean |
closed |
static boolean |
DEBUG |
protected DMRFactory |
dmrfactory |
static boolean |
DUMPDMR |
static java.lang.String[] |
EXTENSIONS |
protected java.lang.String |
filepath |
protected int |
format |
protected int |
mode |
static int |
NC_GRPNULL |
static int |
NC_IDNULL |
static int |
NC_NOERR |
protected static Nc4prototypes |
nc4 |
protected int |
ncid |
protected boolean |
trace |
context, DAPVERSION, dmr, DMRNS, DMRVERSION, location, PARSEDEBUG, rootcursor, TESTING, UCARTAGOPAQUE, UCARTAGORIGTYPE, UCARTAGUNLIMITED, UCARTAGVLEN, USEDOM, variables
Constructor and Description |
---|
Nc4DSP() |
Modifier and Type | Method and Description |
---|---|
protected void |
allnotesInit() |
void |
close() |
boolean |
dspMatch(java.lang.String path,
DapContext context)
A path is file if it has no base protocol or is file:
|
Nc4Notes.Notes |
find(long id,
Nc4Notes.NoteSort sort) |
Nc4prototypes |
getJNI() |
java.lang.String |
getLocation() |
Nc4Cursor |
getVariableData(DapVariable var) |
static java.lang.String |
makeString(byte[] b) |
protected Nc4Notes.NoteSort |
noteSortFor(DapNode node) |
Nc4DSP |
open(java.lang.String filepath)
"open" a reference to a data source and return the DSP wrapper.
|
addVariableData, getChecksumMode, getContext, getDMR, getOrder, parseDMR, printDMR, processAttributes, setChecksumMode, setContext, setDataset, setDMR, setLocation, setOrder, suppress
public static final boolean DEBUG
public static final boolean DUMPDMR
public static java.lang.String[] EXTENSIONS
public static final int NC_GRPNULL
public static final int NC_IDNULL
public static final int NC_NOERR
protected static Nc4prototypes nc4
protected java.util.Map<Nc4Notes.NoteSort,java.util.Map<java.lang.Long,Nc4Notes.Notes>> allnotes
protected boolean trace
protected boolean closed
protected int ncid
protected int format
protected int mode
protected java.lang.String filepath
protected DMRFactory dmrfactory
public Nc4DSP() throws DapException
DapException
public boolean dspMatch(java.lang.String path, DapContext context)
path
- context
- Any parameters that may help to decide.public Nc4Notes.Notes find(long id, Nc4Notes.NoteSort sort)
protected Nc4Notes.NoteSort noteSortFor(DapNode node)
protected void allnotesInit()
public Nc4DSP open(java.lang.String filepath) throws DapException
AbstractDSP
open
in interface DSP
open
in class AbstractDSP
filepath
- - Object that defines the data sourceDapException
public void close() throws DapException
close
in interface DSP
close
in class AbstractDSP
DapException
public Nc4Cursor getVariableData(DapVariable var) throws DapException
getVariableData
in interface DSP
getVariableData
in class AbstractDSP
DapException
public Nc4prototypes getJNI()
public java.lang.String getLocation()
getLocation
in interface DSP
getLocation
in class AbstractDSP
public static java.lang.String makeString(byte[] b)