|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.control.AbstractControls
net.java.sip.communicator.impl.neomedia.jmfext.media.protocol.AbstractBufferStream
abstract class AbstractBufferStream
Provides a base implementation of SourceStream in order to facilitate implementers by taking care of boilerplate in the most common cases.
| Field Summary | |
|---|---|
protected javax.media.protocol.DataSource |
dataSource
The DataSource which has created this instance and which contains it as one of its streams. |
protected javax.media.control.FormatControl |
formatControl
The FormatControl which gives access to the Format of the media data provided by this SourceStream and which, optionally, allows setting it. |
| Fields inherited from interface javax.media.protocol.SourceStream |
|---|
LENGTH_UNKNOWN |
| Constructor Summary | |
|---|---|
protected |
AbstractBufferStream(javax.media.protocol.DataSource dataSource,
javax.media.control.FormatControl formatControl)
Initializes a new AbstractBufferStream instance which is to have its Format-related information abstracted by a specific FormatControl. |
| Method Summary | |
|---|---|
void |
close()
Releases the resources used by this instance throughout its existence and makes it available for garbage collection. |
protected javax.media.Format |
doGetFormat()
Gets the Format of this AbstractBufferStream as directly known by it. |
protected javax.media.Format |
doSetFormat(javax.media.Format format)
Attempts to set the Format of this AbstractBufferStream. |
boolean |
endOfStream()
Determines whether the end of this SourceStream has been reached. |
javax.media.protocol.ContentDescriptor |
getContentDescriptor()
Gets a ContentDescriptor which describes the type of the content made available by this SourceStream. |
long |
getContentLength()
Gets the length in bytes of the content made available by this SourceStream. |
Object[] |
getControls()
Implements Controls.getControls(). |
javax.media.Format |
getFormat()
Gets the Format of the media data made available by this AbstractBufferStream. |
(package private) javax.media.Format |
internalGetFormat()
Gets the Format of this AbstractBufferStream as directly known by it. |
(package private) javax.media.Format |
internalSetFormat(javax.media.Format format)
Attempts to set the Format of this AbstractBufferStream. |
void |
start()
Starts the transfer of media data from this AbstractBufferStream. |
void |
stop()
Stops the transfer of media data from this AbstractBufferStream. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.control.AbstractControls |
|---|
getControl, getControl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.Controls |
|---|
getControl |
| Field Detail |
|---|
protected final javax.media.protocol.DataSource dataSource
protected final javax.media.control.FormatControl formatControl
| Constructor Detail |
|---|
protected AbstractBufferStream(javax.media.protocol.DataSource dataSource,
javax.media.control.FormatControl formatControl)
dataSource - the DataSource which is creating the new
instance so that it becomes one of its streamsformatControl - the FormatControl which is to abstract the
Format-related information of the new instance| Method Detail |
|---|
public void close()
protected javax.media.Format doGetFormat()
protected javax.media.Format doSetFormat(javax.media.Format format)
format - the Format to be set as the format of this
AbstractBufferStream
public boolean endOfStream()
endOfStream in interface javax.media.protocol.SourceStreampublic javax.media.protocol.ContentDescriptor getContentDescriptor()
getContentDescriptor in interface javax.media.protocol.SourceStreampublic long getContentLength()
getContentLength in interface javax.media.protocol.SourceStreampublic Object[] getControls()
Controls.getControls(). Gets the
controls available for this instance.
getControls in interface javax.media.Controlspublic javax.media.Format getFormat()
javax.media.Format internalGetFormat()
javax.media.Format internalSetFormat(javax.media.Format format)
format - the Format to be set as the format of this
AbstractBufferStream
public void start()
throws IOException
IOException - if anything goes wrong while starting the transfer of
media data from this AbstractBufferStream
public void stop()
throws IOException
IOException - if anything goes wrong while stopping the transfer of
media data from this AbstractBufferStream
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||