Methods Summary |
---|
public javax.media.Format | canConnectTo(com.sun.media.InputConnector inputConnector, javax.media.Format useThisFormat)check if a connection to the specified InputConnector would succeed.
|
public javax.media.Format | connectTo(com.sun.media.InputConnector inputConnector, javax.media.Format useThisFormat)Connects an InputConnector to this OutputConnector.
This method should only be called by the Manager when it
is connecting this OutputConnector.
The protocol of the two connectors must match.
the number of buffer objects in the created connection should be at least
the size requested by both the input and the output connector
|
public javax.media.Buffer | getEmptyBuffer()Get an empty buffer object.
The exact behavior depands on the protocol:
- ProtocolPush - if empty buffer is not available throws RuntimeException
- ProtocolSafe - if empty buffer is available read the buffer.
if empty buffer is not available perform wait() on the connection.
Note that this method can be called several times before it blocks
(depending on circular buffer size).
|
public com.sun.media.InputConnector | getInputConnector()Return the InputConnectore this OutputConnector is connected
to. If this Connector is unconnected return null.
|
public boolean | isEmptyBufferAvailable()checks if there are empty Buffer objects in the Connector's queue.
|
public void | writeReport()Indicates the oldest Buffer object got from this Connector (by calling the
getEmptyBuffer method) now contains
valid buffer object, which can be used by the downstream Module.
if such buffer Objects does not exists throws RuntimeException.
The exact behavior depands on the protocol:
- ProtocolPush - if bufferValid call the connected InputConnector Module
connectorPushed() method in the calling thread. method blocks until the downstream module
finishes processing the buffer.
- ProtocolSafe - perform notify() on the connection lock object.
The bufferValid flag was removed. If the buffer Object is just returned,
it should be marked in the Buffer itself, by specifying this is a discarded Buffer chunk.
|