|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.media.protocol.DataSource
|
+--javax.media.protocol.PushDataSource
|
+--javax.media.rtp.RTPPushDataSource
This is an abstraction for a RTP data handler. The source allows the underlying network/transport protocol to be abstracted from the RTP handler. The source is a TWO WAY datasource in that it has an output data stream (PushSourceStream) as well as an input data stream (OutputDataStream). RTPDataSocket extends javax.media.protocol.DataSource. Data flowing out of or in to this source is a stream of bytes in the form of a RTP packet and does not contain any information dependant on the network/transport protocol that will be used to transmit these bytes. Note: an RTPPushDataSource can either handle the DataChannel of an RTP session or the control channel of an RTP session. An RTPPushDataSource that handles the data channel of an RTP session must implement the interface defined in javax.media.rtp.DataChannel.
DataChannel| Field Summary | |
(package private) DataSource |
childsrc
Deprecated. The actual datasource created by the RTPSM and passed to the handler |
(package private) java.lang.String |
contentType
Deprecated. The content type of this socket. |
(package private) OutputDataStream |
inputstream
Deprecated. The input stream of this socket. |
(package private) PushSourceStream |
outputstream
Deprecated. The output stream of this socket. |
| Fields inherited from class javax.media.protocol.DataSource |
|
| Fields inherited from interface javax.media.Duration |
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
RTPPushDataSource()
Deprecated. |
|
| Method Summary | |
void |
connect()
Deprecated. Set the boolean to true and dont do anything else in connect for now |
void |
disconnect()
Deprecated. Set the boolean to false and dont do anything else in connect for now |
java.lang.String |
getContentType()
Deprecated. Implementation of javax.media.protocol.DataSource.getContentType() |
java.lang.Object |
getControl(java.lang.String controlName)
Deprecated. Returns null because no controls are implemented. |
java.lang.Object[] |
getControls()
Deprecated. Returns an zero length array because no controls are supported. |
Time |
getDuration()
Deprecated. Returns null since the duration of the streams of this datasource are not known |
OutputDataStream |
getInputStream()
Deprecated. Method to retrieve the input stream of this two way data source |
PushSourceStream |
getOutputStream()
Deprecated. Method to retrive the output stream of this two way data source |
PushSourceStream[] |
getStreams()
Deprecated. Get the collection of streams that this source manages. |
protected void |
initCheck()
Deprecated. This two way data source does not have any medialocator and datasource will throw an Uninitialized DataSource error incase initCheck() is called on this datasource. |
boolean |
isStarted()
Deprecated. Method to find out if the source had been started |
void |
setChild(DataSource source)
Deprecated. |
void |
setContentType(java.lang.String contentType)
Deprecated. Method used to set the content type of this two way data source |
void |
setInputStream(OutputDataStream inputstream)
Deprecated. Method to set the input stream of this two way data source |
void |
setOutputStream(PushSourceStream outputstream)
Deprecated. Method to set the output stream of this two way data source |
void |
start()
Deprecated. Initiates data-transfer. |
void |
stop()
Deprecated. Stops data-transfer. |
| Methods inherited from class javax.media.protocol.DataSource |
getLocator, setLocator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
PushSourceStream outputstream
OutputDataStream inputstream
java.lang.String contentType
DataSource childsrc
| Constructor Detail |
public RTPPushDataSource()
| Method Detail |
public void setChild(DataSource source)
public PushSourceStream getOutputStream()
public OutputDataStream getInputStream()
public void setOutputStream(PushSourceStream outputstream)
public void setInputStream(OutputDataStream inputstream)
public java.lang.String getContentType()
getContentType in class DataSourcepublic void setContentType(java.lang.String contentType)
public void connect()
throws java.io.IOException
connect in class DataSourcejava.io.IOException - Thrown if there are IO problems
when connect is called.public void disconnect()
disconnect in class DataSourceprotected void initCheck()
initCheck in class DataSource
public void start()
throws java.io.IOException
start in class DataSourcejava.io.IOException - thrown if the source has IO trouble
at startup time.
public void stop()
throws java.io.IOException
stop in class DataSourcejava.io.IOExceptionpublic boolean isStarted()
public java.lang.Object[] getControls()
Object array.public java.lang.Object getControl(java.lang.String controlName)
null because no controls are implemented.
null.public Time getDuration()
Time object representing the duration or DURATION_UNKNOWN.public PushSourceStream[] getStreams()
PushDataSourceContentDescriptor
of this DataSource provides the only indication of
what streams can be available on this connection.
getStreams in class PushDataSource
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||