com.sun.media
接口 InputConnector

所有超级接口:
Connector
所有已知实现类:
BasicInputConnector

public interface InputConnector
extends Connector

InputConnector defines the buffer movement and format typing interface for input connectors.

另请参见:
OutputConnector

字段摘要
 
从接口 com.sun.media.Connector 继承的字段
ProtocolPush, ProtocolSafe
 
方法摘要
 OutputConnector getOutputConnector()
          Return the OutputConnector this InputConnector is connected to.
 Buffer getValidBuffer()
          Get buffer object containing media.
 boolean isValidBufferAvailable()
          checks if there are valid Buffer objects in the Connector's queue.
 void readReport()
          Indicates the oldest Buffer object got from this Connector was used and can be "recycled" by the upstream Module.
 void setOutputConnector(OutputConnector outputConnector)
          Sets the OutputConnector this InputConnector is connected to.
 
从接口 com.sun.media.Connector 继承的方法
getCircularBuffer, getFormat, getModule, getName, getProtocol, getSize, reset, setCircularBuffer, setFormat, setModule, setName, setProtocol, setSize
 

方法详细信息

getOutputConnector

OutputConnector getOutputConnector()
Return the OutputConnector this InputConnector is connected to. If this Connector is unconnected return null.


setOutputConnector

void setOutputConnector(OutputConnector outputConnector)
Sets the OutputConnector this InputConnector is connected to. This method is called by the connectTo() method of the OutputConnector.


isValidBufferAvailable

boolean isValidBufferAvailable()
checks if there are valid Buffer objects in the Connector's queue.

返回:
if there are vaild Buffer objects in the Connector's queue.

getValidBuffer

Buffer getValidBuffer()
Get buffer object containing media.
The exact behavior depands on the protocol:


readReport

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: