WISA.wisa3D.data
Class DEMForm

java.lang.Object
  |
  +--visad.data.FormNode
        |
        +--visad.data.Form
              |
              +--WISA.wisa3D.data.DEMForm
All Implemented Interfaces:
visad.data.FormFileInformer

public class DEMForm
extends visad.data.Form
implements visad.data.FormFileInformer

Überschrift: Wisa3D Beschreibung: Copyright: Copyright (c) 1999 Organisation: IAI-FZK


Field Summary
 
Fields inherited from class visad.data.Form
mathType
 
Constructor Summary
DEMForm(java.lang.String name)
           
 
Method Summary
 void add(java.lang.String id, visad.Data data, boolean replace)
           
 java.lang.String[] getDefaultSuffixes()
           
 visad.data.FormNode getForms(visad.Data data)
           
 boolean isThisType(byte[] block)
           
 boolean isThisType(java.lang.String name)
           
 visad.DataImpl open(java.lang.String id)
           
 visad.DataImpl open(java.net.URL url)
           
protected  visad.DataImpl readData(java.io.File file)
           
protected  int readNext(java.lang.StringBuffer buffer, java.io.BufferedInputStream stream)
          Ließt die Daten aus der Datei bis zu einem Line Feed.
 void save(java.lang.String id, visad.Data data, boolean replace)
           
 
Methods inherited from class visad.data.Form
getMathType
 
Methods inherited from class visad.data.FormNode
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEMForm

public DEMForm(java.lang.String name)
Method Detail

getDefaultSuffixes

public java.lang.String[] getDefaultSuffixes()
Specified by:
getDefaultSuffixes in interface visad.data.FormFileInformer

getForms

public visad.data.FormNode getForms(visad.Data data)
                             throws visad.VisADException,
                                    java.rmi.RemoteException,
                                    java.io.IOException
Specified by:
getForms in class visad.data.FormNode
visad.VisADException
java.rmi.RemoteException
java.io.IOException

isThisType

public boolean isThisType(byte[] block)
Specified by:
isThisType in interface visad.data.FormFileInformer

isThisType

public boolean isThisType(java.lang.String name)
Specified by:
isThisType in interface visad.data.FormFileInformer

open

public visad.DataImpl open(java.net.URL url)
                    throws visad.data.BadFormException,
                           visad.VisADException,
                           java.io.IOException
Specified by:
open in class visad.data.FormNode
visad.data.BadFormException
visad.VisADException
java.io.IOException

open

public visad.DataImpl open(java.lang.String id)
                    throws visad.data.BadFormException,
                           java.io.IOException,
                           visad.VisADException
Specified by:
open in class visad.data.FormNode
visad.data.BadFormException
java.io.IOException
visad.VisADException

save

public void save(java.lang.String id,
                 visad.Data data,
                 boolean replace)
          throws visad.data.BadFormException,
                 java.io.IOException,
                 java.rmi.RemoteException,
                 visad.VisADException
Specified by:
save in class visad.data.FormNode
visad.data.BadFormException
java.io.IOException
java.rmi.RemoteException
visad.VisADException

add

public void add(java.lang.String id,
                visad.Data data,
                boolean replace)
         throws visad.data.BadFormException
Specified by:
add in class visad.data.FormNode
visad.data.BadFormException

readData

protected visad.DataImpl readData(java.io.File file)

readNext

protected int readNext(java.lang.StringBuffer buffer,
                       java.io.BufferedInputStream stream)
                throws java.io.IOException
Ließt die Daten aus der Datei bis zu einem Line Feed. Die Daten werden in buffer gelesen. Bei erfolgreichem lesen wird die Länge des buffers übergeben, ansonsten -1.

java.io.IOException