uk.org.ogsadai.activity.transform
Interface IncrementalProcessor

All Known Implementing Classes:
GZIPIncrementalProcessor, ZIPIncrementalProcessor

public interface IncrementalProcessor

An IncrementalProcessor is used by the IncrementalProcessorInputStream to perform processing that generates output in incremental stages.

Author:
The OGSA-DAI Project Team

Method Summary
 boolean active()
          Indicates whether or not processing is complete.
 void close()
          Closes the IncrementalProcessor, freeing up any resources.
 void initialise(java.io.OutputStream output)
          Initialises the instance to process to the specified output.
 void process()
          Performs some processing that may write data to the OutputStream that the instance was initialised with.
 

Method Detail

initialise

public void initialise(java.io.OutputStream output)
                throws java.io.IOException
Initialises the instance to process to the specified output.

Parameters:
output - The OutputStream
Throws:
java.io.IOException - If there is an I/O problem.

active

public boolean active()
Indicates whether or not processing is complete. If processing is not complete, then more processing can be performed by invoking the process method.

Returns:
true if processing is not complete, otherwise false.

process

public void process()
             throws java.io.IOException
Performs some processing that may write data to the OutputStream that the instance was initialised with.

Throws:
java.io.IOException - If there is an I/O problem.

close

public void close()
           throws java.io.IOException
Closes the IncrementalProcessor, freeing up any resources.

Throws:
java.io.IOException - If there is an I/O problem.