Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.sim.gui
Class BufferSourceStream

    java.lang.Object
      uchicago.src.sim.gui.BufferSourceStream

All Implemented Interfaces:
  javax.media.Controls, javax.media.protocol.PullBufferStream, javax.media.protocol.SourceStream

    public class BufferSourceStream

extends java.lang.Object
implements javax.media.protocol.PullBufferStream

A DataSourceStream for turning JMF Buffers into movies. The JMF Buffers are created by DisplaySurface. See the Java Media Framework documentation for more details on BufferStreams etc.

Version:
  $Revision: 1.4 $ $Date: 2004/11/03 19:50:59 $
Author:
  Nick Collier

Field Summary

Fields inherited from interface javax.media.protocol.SourceStream
`LENGTH_UNKNOWN`

Constructor Summary
`BufferSourceStream(int width, int height, int frameRate, javax.media.format.RGBFormat aFormat)`

Method Summary
`void` | `addBuffer(javax.media.Buffer buf)`
`boolean` | `endOfStream()`
`javax.media.protocol.ContentDescriptor` | `getContentDescriptor()`
`long` | `getContentLength()`
`java.lang.Object` | `getControl(java.lang.String type)`
`java.lang.Object[]` | `getControls()`
`javax.media.Format` | `getFormat()`
`void` | `read(javax.media.Buffer buf)`
`void` | `waitForDone()`
`boolean` | `willReadBlock()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BufferSourceStream

    public BufferSourceStream(int width,
                              int height,
                              int frameRate,
                              javax.media.format.RGBFormat aFormat)

Method Detail

### addBuffer

    public void addBuffer(javax.media.Buffer buf)

### waitForDone

    public void waitForDone()

### willReadBlock

    public boolean willReadBlock()

  Specified by:
    `willReadBlock` in interface `javax.media.protocol.PullBufferStream`

### read

    public void read(javax.media.Buffer buf)

  Specified by:
    `read` in interface `javax.media.protocol.PullBufferStream`

### getFormat

    public javax.media.Format getFormat()

  Specified by:
    `getFormat` in interface `javax.media.protocol.PullBufferStream`

### getContentDescriptor

    public javax.media.protocol.ContentDescriptor getContentDescriptor()

  Specified by:
    `getContentDescriptor` in interface `javax.media.protocol.SourceStream`

### getContentLength

    public long getContentLength()

  Specified by:
    `getContentLength` in interface `javax.media.protocol.SourceStream`

### endOfStream

    public boolean endOfStream()

  Specified by:
    `endOfStream` in interface `javax.media.protocol.SourceStream`

### getControls

    public java.lang.Object[] getControls()

  Specified by:
    `getControls` in interface `javax.media.Controls`

### getControl

    public java.lang.Object getControl(java.lang.String type)

  Specified by:
    `getControl` in interface `javax.media.Controls`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD