Methods Summary |
---|
public com.sun.media.OutputConnector | getOutputConnector()Return the OutputConnector this InputConnector is connected
to. If this Connector is unconnected return null.
|
public javax.media.Buffer | getValidBuffer()Get buffer object containing media.
The exact behavior depands on the protocol:
- ProtocolPush - if buffer is not available throws RuntimeException
- ProtocolSafe - if buffer is available read the buffer and perform notify() on the connection.
if buffer is not available perform wait() on the connection.
|
public boolean | isValidBufferAvailable()checks if there are valid Buffer objects in the Connector's queue.
|
public void | readReport()Indicates the oldest Buffer object got from this Connector was used and can
be "recycled" by the upstream Module.
if such buffer Objects does not exists throws RuntimeException.
The exact behavior depands on the protocol:
- ProtocolPush - no operation.
- ProtocolSafe - perform notify() on the connection lock object.
|
public void | setOutputConnector(com.sun.media.OutputConnector outputConnector)Sets the OutputConnector this InputConnector is connected
to. This method is called by the connectTo() method of the OutputConnector.
|