Methods Summary |
---|
public java.lang.Object | getCircularBuffer()returns the circular buffer Object which is locked (by wait()/notify() )during safe data transfer.
This method should not really be part of the API, but it is put here in order to remove
implementation dependencies.
|
public javax.media.Format | getFormat()The selected format.
If setFormat() has not been called,
getFormat() will return null.
|
public com.sun.media.Module | getModule()Returns the Module which registered this Connector.
|
public java.lang.String | getName()returns the name of this Connector in the owning Module
|
public int | getProtocol()returns the data transfer protocol used by this connector.
either ProtocolPush, ProtocolSafe
|
public int | getSize()gets the minimum number of buffer objects this Connector should create.
|
public void | reset()restores this Connector to its initial state:
removes all the buffer locks.
this method is typically called when the owning Module is requested to reset.
|
public void | setCircularBuffer(java.lang.Object circularBuffer)Sets the circular buffer object of the connection. This method is called only by
the OutputConnector.connectTo() method.
This method should not really be part of the API, but it is put here in order to remove
implementation dependencies.
|
public void | setFormat(javax.media.Format format)Selects a format for this Connector (the default is null).
The setFormat() method is typically called by the Manager
as part of the Connector connection method call.
The connector should delegate this call to its owning Module.
|
public void | setModule(com.sun.media.Module module)sets the Module which registered this Connector.
|
public void | setName(java.lang.String name)sets the name of this Connector. Called by the owning Module registerConnector() method
|
public void | setProtocol(int protocol)determines the data transfer protocol used by this connector.
Perhaps the only way to change the protocol is in the constructor ?
|
public void | setSize(int numOfBufferObjects)sets the minimum number of buffer objects this Connector should create.
The default value should be one buffer object.
|