@NotThreadSafe public class DodsNetcdfFile extends ucar.nc2.NetcdfFile
| Modifier and Type | Class and Description |
|---|---|
static class |
DodsNetcdfFile.Builder2 |
| Modifier and Type | Method and Description |
|---|---|
static DodsNetcdfFile.Builder2 |
builder() |
void |
close() |
void |
getDetailInfo(Formatter f) |
String |
getFileTypeDescription() |
String |
getFileTypeId() |
protected ucar.ma2.Array |
readData(ucar.nc2.Variable v,
ucar.ma2.Section section) |
ucar.ma2.Array |
readSection(String variableSection) |
ucar.ma2.Array |
readWithCE(ucar.nc2.Variable v,
String CE) |
static void |
setAllowCompression(boolean b)
Set whether to allow messages to be compressed.
|
static void |
setAllowSessions(boolean b)
Set whether to allow sessions by allowing cookies.
|
static void |
setCoordinateVariablePreloadSize(int size)
If preloading, set maximum size of coordinate variables to be preloaded.
|
static void |
setPreload(boolean b)
Set whether small variables are preloaded; only turn off for debugging.
|
addLocalFieldsToBuilder, findAttribute, findDimension, findGlobalAttribute, findGlobalAttributeIgnoreCase, findGroup, findVariable, getDetailInfo, getDimensions, getFileTypeVersion, getGlobalAttributes, getId, getLastModified, getLocation, getRootGroup, getStructureDataArrayIterator, getStructureIterator, getTitle, getUnlimitedDimension, getVariables, hasUnlimitedDimension, reacquire, readArrayData, readSectionArray, readToOutputStream, release, sendIospMessage, setCachedData, setDebugFlags, setFileCache, showCached, showProxies, toBuilder, toNcml, toString, toStringDebug, writeNcml, writeNcmlpublic static void setAllowSessions(boolean b)
b - true or false. default is false.public static void setAllowCompression(boolean b)
b - true or false.public static void setPreload(boolean b)
b - true if small variables are preloaded (default true)public static void setCoordinateVariablePreloadSize(int size)
size - maximum size of coordinate variables to be preloaded.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ucar.nc2.internal.cache.FileCacheableclose in class ucar.nc2.NetcdfFileIOExceptionpublic 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 v,
ucar.ma2.Section section)
throws IOException,
ucar.ma2.InvalidRangeException
readData in class ucar.nc2.NetcdfFileIOExceptionucar.ma2.InvalidRangeExceptionpublic ucar.ma2.Array readWithCE(ucar.nc2.Variable v,
String CE)
throws IOException
IOExceptionpublic void getDetailInfo(Formatter f)
getDetailInfo in class ucar.nc2.NetcdfFilepublic String getFileTypeId()
getFileTypeId in class ucar.nc2.NetcdfFilepublic String getFileTypeDescription()
getFileTypeDescription in class ucar.nc2.NetcdfFilepublic static DodsNetcdfFile.Builder2 builder()