public class DataSetInfo extends Object
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 and Description |
|---|
DataSetInfo(String request)
creates a DataSetInfo object that allows reading
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getCommentList()
Returns the list of descriptor contents.
|
char[] |
getData()
Return the data sent by the server
|
Hashtable |
getDescriptionTable()
Return a hashtable of descriptive names and ADDE dataset descriptors
Descriptive names are the keys.
|
List<String> |
getDescriptorList()
Returns the list of descriptors.
|
String[] |
getDescriptors()
Return a sorted list of the dataset descriptors
|
static void |
main(String[] args)
test by running 'java edu.wisc.ssec.mcidas.adde.DataSetInfo'
|
String |
toString()
Return a formated string of the returned data
|
public DataSetInfo(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 datapublic List<String> getDescriptorList()
null. Note that if an
ArrayList is returned, it should have the same number of
elements as the results of getCommentList().public List<String> getCommentList()
ArrayList or null. Note that if an
ArrayList is returned, it should have the same number of
elements as the results of getDescriptorList().public char[] getData()
throws AddeURLException
AddeURLException - if there was an error reading datapublic Hashtable getDescriptionTable() throws AddeURLException
AddeURLException - if there was an error reading datapublic String[] getDescriptors() throws AddeURLException
AddeURLException - if there was an error reading datapublic String toString()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.