Like the ProducerControl
interface, the mmstream.consumer.ConsumerControl
interface extends Java's Runnable
interface and offers a Start()
, a Stop
,
and a Finish()
method. In addition, intra-stream playout synchronisation can be enabled or disabled
with the setPlayOutSync()
method.
Instances of the very simple mmstream.consumer.Byte_Consumer
class use
Chunk_Stream
objects to obtain new Chunk
objects, and simply output the number
carried in the elements of the Chunk
s' byte
arrays.
The File_Consumer
class is the counterpart to the
mmstream.producer.File_Producer
class. A File_Consumer
object also employs a
Chunk_Stream
object and stores the Chunk
objects by means of a SessionFile
object.
An Image_Consumer
object relies on the service of a
MemoryImageSource_Stream
, which constructs
java.awt.image.MemoryImageSource
objects from the imported Chunk
objects and
delivers them on invocation of the getData()
or the getTimedData()
methods to the
invoking Image_Consumer
for displaying.