public class DataDDS extends DDS
DDS,
Serialized FormDAPNode.CloneMapvars_nameClear, _nameEncoded, log| Constructor and Description |
|---|
DataDDS(ServerVersion ver)
Construct the DataDDS with the given server version.
|
DataDDS(ServerVersion ver,
BaseTypeFactory btf) |
| Modifier and Type | Method and Description |
|---|---|
void |
externalize(java.io.OutputStream os,
boolean compress,
boolean headers)
Dump the dataset using externalize methods.
|
ServerVersion |
getServerVersion()
Returns the
ServerVersion given in the constructor. |
boolean |
parse(java.io.InputStream stream) |
void |
printVal(java.io.OutputStream os)
Print the dataset using OutputStream.
|
void |
printVal(java.io.PrintWriter pw)
Print the dataset just read.
|
void |
readData(java.io.InputStream is,
StatusUI statusUI)
Read the data stream from the given InputStream.
|
addVariable, checkForAttributeNameConflict, checkSemantics, cloneDAG, delVariable, getBlobContentID, getDAS, getDDSText, getDDXText, getFactory, getVariable, getVariables, ingestDAS, normalize, numVariables, parse, parseXML, parseXML, print, print, printDAS, printDAS, printXML, printXML, resolveAliases, search, setBlobContentID, setFactory, setURL, tokenizeAliasFielddeserialize, elementCount, externalize, getTypeName, getVar, getVarCount, getVariableSet, printDecl, printValaddVariable, someChildHasAttributesaddAttributeAlias, addAttributeContainer, appendAttribute, appendAttribute, appendAttributeContainer, checkSemantics, delAttribute, delAttribute, elementCount, getAttribute, getAttribute, getAttributeNames, getAttributeTable, getLongName, hasAttributes, newPrimitiveVector, printAttributes, printAttributes, printAttributes, printAttributes, printConstraint, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, printXML, printXML, printXML, setClearNameclone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setEncodedName, setParent, setProject, setProject, setProjectedpublic DataDDS(ServerVersion ver)
ver - the ServerVersion returned from the open OPeNDAP connection.public DataDDS(ServerVersion ver, BaseTypeFactory btf)
public final ServerVersion getServerVersion()
ServerVersion given in the constructor.ServerVersion given in the constructor.public boolean parse(java.io.InputStream stream)
throws ParseException,
DAP2Exception
parse in class DDSParseExceptionDAP2Exceptionpublic void readData(java.io.InputStream is,
StatusUI statusUI)
throws java.io.IOException,
java.io.EOFException,
DAP2Exception
is - the InputStream to read fromstatusUI - the StatusUI object to use, or nulljava.io.EOFException - if EOF is found before the variable is completely
deserialized.java.io.IOException - thrown on any other InputStream exception.DataReadException - when invalid data is read, or if the user
cancels the download.DAP2Exception - if the OPeNDAP server returned an error.public void printVal(java.io.PrintWriter pw)
geturl.pw - the PrintWriter to use.public final void printVal(java.io.OutputStream os)
os - the OutputStream to use.public final void externalize(java.io.OutputStream os,
boolean compress,
boolean headers)
throws java.io.IOException
os - the OutputStream to use.compress - true if we should compress the output.headers - true if we should print HTTP headers.java.io.IOException - thrown on any OutputStream exception.