|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdods.dap.DDS
dods.dap.DataDDS
public class DataDDS
The DataDDS class extends DDS to add new methods for retrieving data from the server, and printing out the contents of the data.
DDS| Field Summary |
|---|
| Fields inherited from class dods.dap.DDS |
|---|
name, vars |
| Constructor Summary | |
|---|---|
DataDDS(ServerVersion ver)
Construct the DataDDS with the given server version. |
|
DataDDS(ServerVersion ver,
BaseTypeFactory btf)
|
|
| Method Summary | |
|---|---|
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. |
void |
printVal(java.io.OutputStream os)
Print the dataset using OutputStream. |
void |
printVal(java.io.PrintWriter os)
Print the dataset just read. |
void |
readData(java.io.InputStream is,
StatusUI statusUI)
Read the data stream from the given InputStream. |
| Methods inherited from class dods.dap.DDS |
|---|
addVariable, checkSemantics, checkSemantics, clone, delVariable, getFactory, getName, getVariable, getVariables, numVariables, parse, print, print, search, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataDDS(ServerVersion ver)
ver - the ServerVersion returned from the open DODS connection.
public DataDDS(ServerVersion ver,
BaseTypeFactory btf)
| Method Detail |
|---|
public final ServerVersion getServerVersion()
ServerVersion given in the constructor.
ServerVersion given in the constructor.
public void readData(java.io.InputStream is,
StatusUI statusUI)
throws java.io.IOException,
java.io.EOFException,
DODSException
is - the InputStream to read fromstatusUI - the StatusUI object to use, or null
java.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.
DODSException - if the DODS server returned an error.public void printVal(java.io.PrintWriter os)
geturl.
os - 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||