ccs.cdb
Interface CallbackStreamProducer

All Known Implementing Classes:
CDBFile

public interface CallbackStreamProducer

The object produces a stream, which it can give to a CallbackStreamConsumer to process.


Method Summary
 void setConsumer(CallbackStreamConsumer consumer)
          Set the object which will consume the stream produced.
 void startStreamProduction()
          Initiate the stream production process and invoke the stream consumer when you're ready.
 

Method Detail

setConsumer

void setConsumer(CallbackStreamConsumer consumer)
Set the object which will consume the stream produced.

Parameters:
consumer - The consumer object.

startStreamProduction

void startStreamProduction()
                           throws java.io.IOException
Initiate the stream production process and invoke the stream consumer when you're ready.

Throws:
java.io.IOException