|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidas.adde.DataSetInfo
public class DataSetInfo
DataSetInfo interface for McIDAS ADDE data sets. Simulates a McIDAS DSINFO request using an ADDE URL.
URLs must all have the following format adde://host/datasetinfo?keyword_1=value_1&keyword_2=value_2 there can be any valid combination of the following supported keywords: group - ADDE group name type - ADDE data type. Must be one of the following: image, point, grid, text, nav the default is the image type. the following keywords are required: group an example URL might look like: adde://viper/datasetinfo?group=gvar&type=image
Constructor Summary | |
---|---|
DataSetInfo(java.lang.String request)
creates a DataSetInfo object that allows reading |
Method Summary | |
---|---|
char[] |
getData()
Return the data sent by the server |
java.util.Hashtable |
getDescriptionTable()
Return a hashtable of descriptive names and ADDE dataset descriptors Descriptive names are the keys. |
java.lang.String[] |
getDescriptors()
Return a sorted list of the dataset descriptors |
static void |
main(java.lang.String[] args)
test by running 'java edu.wisc.ssec.mcidas.adde.DataSetInfo' |
java.lang.String |
toString()
Return a formated string of the returned data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataSetInfo(java.lang.String request) throws AddeURLException
request
- ADDE URL to read from. See class javadoc.
an example URL might look like: adde://viper/datasetinfo?group=gvar&type=image
AddeURLException
- if there are no datasets of the particular
type or there is an error reading dataMethod Detail |
---|
public char[] getData() throws AddeURLException
AddeURLException
- if there was an error reading datapublic java.util.Hashtable getDescriptionTable() throws AddeURLException
AddeURLException
- if there was an error reading datapublic java.lang.String[] getDescriptors() throws AddeURLException
AddeURLException
- if there was an error reading datapublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |