public class DapNetcdfFile
extends ucar.nc2.NetcdfFile
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DapNetcdfFile.NullCancelTask |
protected static class |
DapNetcdfFile.State
Use this to avoid passing around multiple arguments
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowCompression |
protected ucar.nc2.util.CancelTask |
cancel |
protected boolean |
closed |
protected D4DSP |
dsp |
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,
ucar.nc2.util.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.
|
D4DSP |
getDSP() |
String |
getURL() |
boolean |
isconstrainable() |
List<ucar.ma2.Array> |
readArrays(List<ucar.nc2.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 ucar.ma2.Array |
readData(ucar.nc2.Variable cdmvar,
ucar.ma2.Section section)
Primary read entry point.
|
ucar.ma2.Array |
readSection(String variableSection) |
long |
readToByteChannel(ucar.nc2.Variable v,
ucar.ma2.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 XURI xuri
protected D4DSP dsp
protected ucar.nc2.util.CancelTask cancel
protected NodeMap nodemap
public DapNetcdfFile(String url, ucar.nc2.util.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 ucar.nc2.util.cache.FileCacheableclose in class ucar.nc2.NetcdfFileIOException - if error when closingpublic boolean isconstrainable()
public String getURL()
public D4DSP getDSP()
public List<ucar.ma2.Array> readArrays(List<ucar.nc2.Variable> variables) throws IOException
readArrays in class ucar.nc2.NetcdfFilevariables - List of type VariableIOException - if read errorpublic long readToByteChannel(ucar.nc2.Variable v,
ucar.ma2.Section section,
WritableByteChannel channel)
throws IOException,
ucar.ma2.InvalidRangeException
readToByteChannel in class ucar.nc2.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 errorucar.ma2.InvalidRangeException - if invalid sectionpublic ucar.ma2.Array readSection(String variableSection) throws IOException, ucar.ma2.InvalidRangeException
readSection in class ucar.nc2.NetcdfFileIOExceptionucar.ma2.InvalidRangeExceptionprotected ucar.ma2.Array readData(ucar.nc2.Variable cdmvar,
ucar.ma2.Section section)
throws IOException,
ucar.ma2.InvalidRangeException
readData in class ucar.nc2.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 errorucar.ma2.InvalidRangeException - if invalid sectionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.