WISA.wisa3D.data
Class SatDatGenForm
java.lang.Object
|
+--visad.data.FormNode
|
+--visad.data.Form
|
+--WISA.wisa3D.data.SatDatGenForm
- All Implemented Interfaces:
- visad.data.FormFileInformer
- public class SatDatGenForm
- extends visad.data.Form
- implements visad.data.FormFileInformer
|
Field Summary |
static java.lang.Class[] |
CLASSES
|
static java.lang.String[] |
FIELDS
|
| Fields inherited from class visad.data.Form |
mathType |
|
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)
Ließt die Daten aus dem übergebenen File und wandelt diese in ein
DataImpl-Objekt um. |
protected int |
readNext(java.lang.StringBuffer buffer,
java.io.BufferedInputStream stream)
Ließt die Daten aus der Datei bis zu einem Leerzeichen oder 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 |
FIELDS
public static java.lang.String[] FIELDS
CLASSES
public static java.lang.Class[] CLASSES
SatDatGenForm
public SatDatGenForm(java.lang.String name)
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
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.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
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
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
readData
protected visad.DataImpl readData(java.io.File file)
throws visad.data.BadFormException
- Ließt die Daten aus dem übergebenen File und wandelt diese in ein
DataImpl-Objekt um.
- Parameters:
file - Die zu ladende Datei
- Returns:
- Das erzeugte DataImpl-Objekt
visad.data.BadFormException
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 Leerzeichen oder einem Line Feed. Die Daten werden
in buffer gelesen. Bei erfolgreichem lesen wird die Länge des buffers übergeben, ansonsten -1.
java.io.IOException