public class CdmRemote extends NetcdfFile
NetcdfFile.Builder<T extends NetcdfFile.Builder<T>>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROTOCOL |
static java.lang.String |
SCHEME |
cache, dimensions, gattributes, id, iosp, IOSP_MESSAGE_ADD_RECORD_STRUCTURE, IOSP_MESSAGE_CONVERT_RECORD_STRUCTURE, IOSP_MESSAGE_GET_NETCDF_FILE_FORMAT, IOSP_MESSAGE_RANDOM_ACCESS_FILE, IOSP_MESSAGE_REMOVE_RECORD_STRUCTURE, location, rootGroup, title, variables
Constructor and Description |
---|
CdmRemote(java.io.InputStream is,
java.lang.String location) |
CdmRemote(java.lang.String _remoteURI) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
canonicalURL(java.lang.String urlName)
Create the canonical form of the URL.
|
void |
close()
Close all resources (files, sockets, etc) associated with this file.
|
java.lang.String |
getFileTypeDescription()
Get a human-readable description for this file type.
|
java.lang.String |
getFileTypeId()
Get the file type id for the underlying data source.
|
protected StructureDataIterator |
getStructureIterator(Structure s,
int bufferSize) |
protected Array |
readData(Variable v,
Section section)
Do not call this directly, use Variable.read() !!
Ranges must be filled (no nulls)
|
static java.io.InputStream |
sendQuery(HTTPSession session,
java.lang.String remoteURI,
java.lang.String query) |
static void |
setAllowCompression(boolean b) |
static void |
setDebugFlags(DebugFlags debugFlag) |
long |
writeToFile(java.lang.String filename) |
addAttribute, addAttribute, addDimension, addGroup, addLocalFieldsToBuilder, addStringVariable, addVariable, addVariable, addVariableAttribute, builder, canonicalizeUriString, canOpen, empty, findAttribute, findAttValueIgnoreCase, findDimension, findGlobalAttribute, findGlobalAttributeIgnoreCase, findGroup, findVariable, findVariable, findVariableByAttribute, finish, getCacheName, getDetailInfo, getDetailInfo, getDimensions, getFileTypeVersion, getGlobalAttributes, getId, getIosp, getLastModified, getLocation, getRootGroup, getTitle, getUnlimitedDimension, getVariables, hasUnlimitedDimension, iospDeRegister, iospRegistered, makeFullName, makeFullName, makeFullNameSectionSpec, makeFullNameWithString, makeNameUnescaped, makeRecordStructure, makeValidCDLName, makeValidCdmObjectName, makeValidPathName, makeValidSectionSpecName, open, open, open, open, open, open, openInMemory, openInMemory, openInMemory, openInMemory, reacquire, read, readArrays, readAttributeDouble, readAttributeInteger, readSection, readToByteChannel, readToOutputStream, registerIOProvider, registerIOProvider, registerIOProvider, registerIOProviderPreferred, release, removeDimension, removeRecordStructure, removeVariable, sendIospMessage, setCacheName, setFileCache, setId, setImmutable, setLocation, setProperty, setRootGroup, setTitle, showCached, showProxies, syncExtend, toBuilder, toNcml, toString, toStringDebug, writeCDL, writeCDL, writeCDL, writeNcml, writeNcml
public static final java.lang.String PROTOCOL
public static final java.lang.String SCHEME
public CdmRemote(java.lang.String _remoteURI) throws java.io.IOException
java.io.IOException
public CdmRemote(java.io.InputStream is, java.lang.String location) throws java.io.IOException
java.io.IOException
public static void setDebugFlags(DebugFlags debugFlag)
public static void setAllowCompression(boolean b)
public static java.lang.String canonicalURL(java.lang.String urlName)
urlName
- the url stringprotected Array readData(Variable v, Section section) throws java.io.IOException
NetcdfFile
readData
in class NetcdfFile
java.io.IOException
protected StructureDataIterator getStructureIterator(Structure s, int bufferSize)
getStructureIterator
in class NetcdfFile
public static java.io.InputStream sendQuery(HTTPSession session, java.lang.String remoteURI, java.lang.String query) throws java.io.IOException
java.io.IOException
public java.lang.String getFileTypeId()
NetcdfFile
getFileTypeId
in class NetcdfFile
public java.lang.String getFileTypeDescription()
NetcdfFile
getFileTypeDescription
in class NetcdfFile
public long writeToFile(java.lang.String filename) throws java.io.IOException
java.io.IOException
public void close()
NetcdfFile
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface FileCacheable
close
in class NetcdfFile