next up previous contents index
Next: Producers Up: Intra-Application Data Flow Previous: StreamExporters

Streams

Stream Interface

  The Stream interface comprises the following methods:

Stream Implementations

The current mmstream.stream package includes two implementations of the Stream interface. First, the simple Chunk_Stream class, whose getData() and getTimedData() methods behave exactly like the getChunk() and getChunk() methods.
Next, the MemoryImageSource_Stream class' getData() method returns objects belonging to the java.awt.image.MemoryImageSource class; similarly, the getTimedData() method returns TimedObjects, which reference MemoryImageSource objects.

Both Stream implementations contain a Clock object, which is generated by a Stream objects' StreamExporter. The Clock maps the timestamp contained in Chunk objects to local playout time instances; the playout offset necessary for this computation is set on behalf of user interactions or by the Stream's setMasterStream() method.



next up previous contents index
Next: Producers Up: Intra-Application Data Flow Previous: StreamExporters



tspeuker@cip.informatik.uni-erlangen.de