Methods Summary |
---|
public void | addDataSinkListener(javax.media.datasink.DataSinkListener listener)Adds an event listener for events generated by this DataSink .
|
public void | close()Closes the connection to the destination described by the
output MediaLocator .
This method frees the resources used to maintain a
connection to the destination.
If no resources are in use, close is ignored.
If stop hasn't already been called,
calling close stops the data transfer.
A DataSink can no longer be used once it has been closed.
|
public java.lang.String | getContentType()Gets a string that describes the content type of the media
that this DataSink is consuming.
|
public javax.media.MediaLocator | getOutputLocator()Gets the output MediaLocator that describes where
the output of this DataSink goes.
|
public void | open()Opens a connection to the destination described by
the output MediaLocator . This method
establishes a channel between this DataSink and its destination.
|
public void | removeDataSinkListener(javax.media.datasink.DataSinkListener listener)Removes the specified event listener from this DataSink .
|
public void | setOutputLocator(javax.media.MediaLocator output)Sets the output MediaLocator for this DataSink .
This method should only be called once; an error is thrown if
the locator has already been set.
|
public void | start()Initiates data transfer.
You must call open before calling the start method.
|
public void | stop()Stops the data transfer.
If the source has not been connected and started,
stop does nothing.
|