gov.nih.nci.cagrid.caarray.util
Interface GridTransferResultHandler


public interface GridTransferResultHandler

An interface to be implemented by clients who which to to process data retrieved via a Grid Transfer enabled service as a stream.

Author:
dkokotov

Method Summary
 java.lang.Object processRetrievedData(java.io.InputStream stream)
          Process the data incoming via the grid transfer service.
 

Method Detail

processRetrievedData

java.lang.Object processRetrievedData(java.io.InputStream stream)
                                      throws java.io.IOException
Process the data incoming via the grid transfer service. The implementation does not need to close the stream at the end.

Parameters:
stream - the InputStream representing the data coming over via the grid transfer service.
Returns:
the handler may optionally return some result of its processing. The semantics of such a result is up to individual implementations.
Throws:
java.io.IOException - in case of error reading from the stream