public class ZebraMapForm
extends visad.data.Form
implements visad.data.FormFileInformer
Constructor and Description |
---|
ZebraMapForm()
Construct a Form for reading in ESRI shapefile map files
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String id,
visad.Data data,
boolean replace)
Add data to an existing data object
|
java.lang.String[] |
getDefaultSuffixes()
Get a list of default suffixes for shapfile map files
|
visad.data.FormNode |
getForms(visad.Data data)
Return the data forms that are compatible with a data object
|
boolean |
isThisType(byte[] block)
Determines if this is a shapfile map file from the starting block
|
boolean |
isThisType(java.lang.String name)
Determines if this is a shapefile map file from the name
|
visad.DataImpl |
open(java.lang.String id)
Open the file specified by the string
|
visad.DataImpl |
open(java.net.URL url)
Open the file specified by the URL
|
void |
save(java.lang.String id,
visad.Data data,
boolean replace)
Save a VisAD data object in this form
|
public ZebraMapForm()
public boolean isThisType(java.lang.String name)
isThisType
in interface visad.data.FormFileInformer
name
- name of the filepublic boolean isThisType(byte[] block)
isThisType
in interface visad.data.FormFileInformer
block
- block of data to checkpublic java.lang.String[] getDefaultSuffixes()
getDefaultSuffixes
in interface visad.data.FormFileInformer
public void save(java.lang.String id, visad.Data data, boolean replace) throws visad.data.BadFormException, java.io.IOException, java.rmi.RemoteException, visad.VisADException
save
in class visad.data.FormNode
id
- location of datadata
- data to addreplace
- true to replace old with newvisad.data.BadFormException
- bad formjava.io.IOException
- file doesn't existjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Problem creating datapublic void add(java.lang.String id, visad.Data data, boolean replace) throws visad.data.BadFormException
add
in class visad.data.FormNode
id
- location of datadata
- data to addreplace
- true to replace old with newvisad.data.BadFormException
- always for this formpublic visad.DataImpl open(java.lang.String id) throws visad.data.BadFormException, java.io.IOException, visad.VisADException
open
in class visad.data.FormNode
id
- string representing the path to the filevisad.data.BadFormException
java.io.IOException
visad.VisADException
public visad.DataImpl open(java.net.URL url) throws visad.data.BadFormException, visad.VisADException, java.io.IOException
open
in class visad.data.FormNode
url
- URL of the remote mapvisad.data.BadFormException
- bad formjava.io.IOException
- file doesn't existvisad.VisADException
- Problem creating datapublic visad.data.FormNode getForms(visad.Data data)
getForms
in class visad.data.FormNode
data
- data in question