visad.data
Class FunctionFormFamily.URLFunction

java.lang.Object
  extended byvisad.data.FunctionFormFamily.FormFunction
      extended byvisad.data.FunctionFormFamily.URLFunction
Direct Known Subclasses:
FunctionFormFamily.OpenURLForm
Enclosing class:
FunctionFormFamily

abstract class FunctionFormFamily.URLFunction
extends FunctionFormFamily.FormFunction

Perform an operation on a remote file object using the first valid Form.


Field Summary
(package private)  URL url
           
 
Constructor Summary
FunctionFormFamily.URLFunction()
           
 
Method Summary
(package private)  boolean check(FormFileInformer node)
          Return 'true' if this object's name applies to the given node.
(package private) abstract  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

url

URL url
Constructor Detail

FunctionFormFamily.URLFunction

public FunctionFormFamily.URLFunction()
Method Detail

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

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.

Specified by:
getStream in class FunctionFormFamily.FormFunction
Throws:
IOException

function

abstract boolean function(FormNode node)
The operation to be performed on the object.


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