public class DapNetcdfFile extends NetcdfFile
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DapNetcdfFile.NullCancelTask |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowCompression |
protected Map<Variable,Array> |
arraymap
Originally, the array for a variable was stored
using var.setCacheData().
|
protected CancelTask |
cancel |
protected boolean |
closed |
protected D4DSP |
dsp |
protected String |
finalurl |
protected NodeMap |
nodemap |
protected static DapNetcdfFile.NullCancelTask |
nullcancel |
protected String |
originalurl |
protected XURI |
xuri |
cache, cacheName, debugCompress, debugSPI, dimensions, gattributes, id, IOSP_MESSAGE_ADD_RECORD_STRUCTURE, IOSP_MESSAGE_CONVERT_RECORD_STRUCTURE, IOSP_MESSAGE_RANDOM_ACCESS_FILE, IOSP_MESSAGE_REMOVE_RECORD_STRUCTURE, location, reservedCdl, reservedFullName, reservedSectionSpec, rootGroup, showRequest, spi, title, variables| Constructor and Description |
|---|
DapNetcdfFile(String url)
Open a Dap4 connection
|
DapNetcdfFile(String url,
CancelTask cancelTask)
Open a Dap4 connection or file via a D4DSP.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all resources (files, sockets, etc) associated with this file.
|
DSP |
getDSP() |
String |
getURL() |
boolean |
isconstrainable() |
List<Array> |
readArrays(List<Variable> variables)
Do a bulk read on a list of Variables and
return a corresponding list of Array that contains the results
of a full read on each Variable.
|
protected Array |
readData(Variable cdmvar,
Section section)
Primary read entry point.
|
Array |
readSection(String variableSection) |
long |
readToByteChannel(Variable v,
Section section,
WritableByteChannel channel)
Read databuffer from a top level Variable
and send databuffer to a WritableByteChannel.
|
addAttribute, addAttribute, addDimension, addGroup, addStringVariable, addVariable, addVariable, addVariableAttribute, canOpen, empty, findAttribute, findAttValueIgnoreCase, findDimension, findGlobalAttribute, findGlobalAttributeIgnoreCase, findGroup, findVariable, findVariable, findVariableByAttribute, finish, getCacheName, getDetailInfo, getDetailInfo, getDimensions, getFileTypeDescription, getFileTypeId, getFileTypeVersion, getGlobalAttributes, getId, getIosp, getLastModified, getLocation, getRootGroup, getStructureIterator, getTitle, getUnlimitedDimension, getVariables, hasUnlimitedDimension, iospRegistered, main, makeFullName, makeFullName, makeFullNameSectionSpec, makeFullNameWithString, makeNameUnescaped, makeRecordStructure, makeRootGroup, makeValidCDLName, makeValidCdmObjectName, makeValidPathName, makeValidSectionSpecName, open, open, open, open, open, open, openInMemory, openInMemory, openInMemory, openInMemory, read, readAttributeDouble, readAttributeInteger, readToOutputStream, registerIOProvider, registerIOProvider, registerIOProvider, removeDimension, removeRecordStructure, removeVariable, sendIospMessage, setCacheName, setDebugFlags, setFileCache, setId, setImmutable, setLocation, setProperty, setTitle, showCached, showProxies, syncExtend, toString, toStringDebug, toStringEnd, toStringStart, toStringStart, writeCDL, writeCDL, writeCDL, writeNcML, writeNcMLprotected static final DapNetcdfFile.NullCancelTask nullcancel
protected boolean allowCompression
protected boolean closed
protected String originalurl
protected String finalurl
protected XURI xuri
protected D4DSP dsp
protected CancelTask cancel
protected NodeMap nodemap
public DapNetcdfFile(String url, CancelTask cancelTask) throws IOException
url - URL for the request.cancelTask - check if task is cancelled; may be null.IOExceptionpublic DapNetcdfFile(String url) throws IOException
url - URL for the request.IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface FileCacheableclose in class NetcdfFileIOException - if error when closingpublic boolean isconstrainable()
public String getURL()
public DSP getDSP()
public List<Array> readArrays(List<Variable> variables) throws IOException
readArrays in class NetcdfFilevariables - List of type VariableIOException - if read errorpublic long readToByteChannel(Variable v, Section section, WritableByteChannel channel) throws IOException, InvalidRangeException
readToByteChannel in class NetcdfFilev - a top-level Variablesection - the section of databuffer to read.
There must be a Range for each Dimension in the variable,
in order.
Note: no nulls allowed. IOSP may not modify.channel - write databuffer to this WritableByteChannelIOException - if read errorInvalidRangeException - if invalid sectionpublic Array readSection(String variableSection) throws IOException, InvalidRangeException
readSection in class NetcdfFileIOExceptionInvalidRangeExceptionprotected Array readData(Variable cdmvar, Section section) throws IOException, InvalidRangeException
readData in class NetcdfFilecdmvar - A top-level variablesection - the section of databuffer to read.
There must be a Range for each Dimension in the variable,
in order. Note: no nulls allowed.IOException - if read errorInvalidRangeException - if invalid sectionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.