visad.data
Class FunctionFormFamily.SaveForm

java.lang.Object
  extended byvisad.data.FunctionFormFamily.FormFunction
      extended byvisad.data.FunctionFormFamily.FileFunction
          extended byvisad.data.FunctionFormFamily.SaveForm
Enclosing class:
FunctionFormFamily

class FunctionFormFamily.SaveForm
extends FunctionFormFamily.FileFunction

Save a Data object to a local file using the first valid Form.


Field Summary
(package private)  String name
           
 
Constructor Summary
FunctionFormFamily.SaveForm(String name, Data data, boolean replace)
           
 
Method Summary
(package private)  boolean check(FormFileInformer node)
          Return 'true' if this object's name applies to the given node.
(package private)  boolean function(FormNode node)
          The operation to be performed on the object.
(package private)  InputStream getStream()
          Return an InputStream for the object.
 boolean run()
          Perform an operation on an object using the first valid Form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

String name
Constructor Detail

FunctionFormFamily.SaveForm

public FunctionFormFamily.SaveForm(String name,
                                   Data data,
                                   boolean replace)
Method Detail

function

boolean function(FormNode node)
Description copied from class: FunctionFormFamily.FormFunction
The operation to be performed on the object.

Specified by:
function in class FunctionFormFamily.FormFunction

getStream

InputStream getStream()
                throws IOException
Description copied from class: FunctionFormFamily.FormFunction
Return an InputStream for the object. Used to read in the first block of the object.

Overrides:
getStream in class FunctionFormFamily.FileFunction
Throws:
IOException

check

boolean check(FormFileInformer node)
Description copied from class: FunctionFormFamily.FormFunction
Return 'true' if this object's name applies to the given node.

Specified by:
check in class FunctionFormFamily.FormFunction

run

public boolean run()
            throws IOException
Perform an operation on an object using the first valid Form. If a Form successfully performs the operation, return 'true'.

Throws:
IOException