public class DemFamily extends FunctionFormFamily implements FormFileInformer
Data data = new DemFamily("dems").open(string);
UsgsDemForm,
ArcAsciiGridFormforms| Constructor and Description |
|---|
DemFamily(java.lang.String name)
Construct a family of the supported map datatype Forms
|
DemFamily(java.lang.String name,
MathType dataFormat)
Construct a family of the supported map datatype Forms
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addFormToList(FormNode form)
Add to the family of the supported map datatype Forms
|
java.lang.String[] |
getDefaultSuffixes()
Get a list of default suffixes for McIDAS map files
|
boolean |
isThisType(byte[] block)
Determines if this is a USGS DEM file from the starting block
|
boolean |
isThisType(java.lang.String name)
Determines if this is a DEM file from the name
|
static void |
main(java.lang.String[] args)
Test the DemFamily class
run java visad.data.gis.DemFamily dem1 dem2 ... demn
|
DataImpl |
open(java.lang.String id)
Open a local data object using the first appropriate map form.
|
DataImpl |
open(java.net.URL url)
Open a remote data object using the first appropriate map form.
|
add, saveaddFormNode, getFormspublic DemFamily(java.lang.String name)
name - name of the familypublic DemFamily(java.lang.String name,
MathType dataFormat)
name - name of the familypublic static void addFormToList(FormNode form) throws java.lang.ArrayIndexOutOfBoundsException
form - FormNode to add to the listjava.lang.ArrayIndexOutOfBoundsException - If there is no more room in the list.public boolean isThisType(java.lang.String name)
isThisType in interface FormFileInformername - name of the filepublic boolean isThisType(byte[] block)
isThisType in interface FormFileInformerblock - block of data to checkpublic java.lang.String[] getDefaultSuffixes()
getDefaultSuffixes in interface FormFileInformerpublic DataImpl open(java.lang.String id) throws BadFormException, VisADException
open in class FunctionFormFamilyid - String representing the path of the map fileBadFormException - - no form is appropriateVisADException - - VisAD errorpublic DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.IOException
open in class FunctionFormFamilyurl - URL representing the location of the map fileBadFormException - - no form is appropriateVisADException - - VisAD errorjava.io.IOException - - file not foundpublic static void main(java.lang.String[] args)
throws BadFormException,
java.io.IOException,
java.rmi.RemoteException,
VisADException
BadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADException