FileDocCategorySizeDatePackage
InputConnector.javaAPI DocJMF 2.1.1e1931Mon May 12 12:20:48 BST 2003com.sun.media

InputConnector

public interface InputConnector implements Connector
InputConnector defines the buffer movement and format typing interface for input connectors.
see
OutputConnector

Fields Summary
Constructors Summary
Methods Summary
public com.sun.media.OutputConnectorgetOutputConnector()
Return the OutputConnector this InputConnector is connected to. If this Connector is unconnected return null.

public javax.media.BuffergetValidBuffer()
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 booleanisValidBufferAvailable()
checks if there are valid Buffer objects in the Connector's queue.

return
if there are vaild Buffer objects in the Connector's queue.

public voidreadReport()
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 voidsetOutputConnector(com.sun.media.OutputConnector outputConnector)
Sets the OutputConnector this InputConnector is connected to. This method is called by the connectTo() method of the OutputConnector.