com.sun.media
类 BasicConnector

java.lang.Object
  继承者 com.sun.media.BasicConnector
所有已实现的接口:
Connector
直接已知子类:
BasicInputConnector, BasicOutputConnector

public abstract class BasicConnector
extends java.lang.Object
implements Connector

Defines implementation of the Connector interface.


字段摘要
protected  CircularBuffer circularBuffer
          the circularBuffer which is the connector memory
protected  Format format
          the format chosen for this connector. null if none
protected  int minSize
          minimum number of data chunks this connector should allocate
protected  Module module
          the module which registered this connector
protected  java.lang.String name
          the name the module chose for this connector
protected  int protocol
          the data transfer protocol chosen for this Connector.
 
从接口 com.sun.media.Connector 继承的字段
ProtocolPush, ProtocolSafe
 
构造方法摘要
BasicConnector()
           
 
方法摘要
 java.lang.Object getCircularBuffer()
          returns the circular buffer
 Format getFormat()
          The selected format.
 Module getModule()
          Returns the Module which owns this Connector.
 java.lang.String getName()
          returns the name of this Connector
 int getProtocol()
          returns the data transfer protocol used by this connector.
 int getSize()
          gets the minimum number of buffer objects this Connector should create.
 void print()
           
 void reset()
          restores this Connector to its initial state
 void setCircularBuffer(java.lang.Object cicularBuffer)
          sets the CircularBuffer of this Connector.
 void setFormat(Format format)
          Selects a format for this Connector.
 void setModule(Module module)
          sets the Module which owns this Connector.
 void setName(java.lang.String name)
          sets the name of this Connector
 void setProtocol(int protocol)
          sets the data transfer protocol used by this connector.
 void setSize(int numOfBufferObjects)
          sets the minimum number of buffer objects this Connector should create.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

module

protected Module module
the module which registered this connector


minSize

protected int minSize
minimum number of data chunks this connector should allocate


format

protected Format format
the format chosen for this connector. null if none


circularBuffer

protected CircularBuffer circularBuffer
the circularBuffer which is the connector memory


name

protected java.lang.String name
the name the module chose for this connector


protocol

protected int protocol
the data transfer protocol chosen for this Connector.
either ProtocolPush, ProtocolSafe

另请参见:
Connector.ProtocolPush, Connector.ProtocolSafe
构造方法详细信息

BasicConnector

public BasicConnector()
方法详细信息

getCircularBuffer

public java.lang.Object getCircularBuffer()
returns the circular buffer

指定者:
接口 Connector 中的 getCircularBuffer
另请参见:
circularBuffer

setCircularBuffer

public void setCircularBuffer(java.lang.Object cicularBuffer)
sets the CircularBuffer of this Connector.

指定者:
接口 Connector 中的 setCircularBuffer
参数:
cicularBuffer - the circular buffer used by this Connection
另请参见:
circularBuffer

setFormat

public void setFormat(Format format)
Selects a format for this Connector. Delegates this call to its owning Module

指定者:
接口 Connector 中的 setFormat
另请参见:
format

getFormat

public Format getFormat()
The selected format.

指定者:
接口 Connector 中的 getFormat
返回:
the currently selected format.
另请参见:
format

getModule

public Module getModule()
Returns the Module which owns this Connector.

指定者:
接口 Connector 中的 getModule
另请参见:
module

setModule

public void setModule(Module module)
sets the Module which owns this Connector.

指定者:
接口 Connector 中的 setModule
另请参见:
module

setSize

public void setSize(int numOfBufferObjects)
sets the minimum number of buffer objects this Connector should create. The default value should be one buffer object.

指定者:
接口 Connector 中的 setSize
另请参见:
minSize

getSize

public int getSize()
gets the minimum number of buffer objects this Connector should create.

指定者:
接口 Connector 中的 getSize
另请参见:
minSize

reset

public void reset()
restores this Connector to its initial state

指定者:
接口 Connector 中的 reset

getName

public java.lang.String getName()
returns the name of this Connector

指定者:
接口 Connector 中的 getName
另请参见:
name

setName

public void setName(java.lang.String name)
sets the name of this Connector

指定者:
接口 Connector 中的 setName
另请参见:
name

setProtocol

public void setProtocol(int protocol)
sets the data transfer protocol used by this connector.

指定者:
接口 Connector 中的 setProtocol
参数:
protocol - either ProtocolPush, ProtocolSafe
另请参见:
protocol

getProtocol

public int getProtocol()
returns the data transfer protocol used by this connector.

指定者:
接口 Connector 中的 getProtocol
另请参见:
protocol

print

public void print()