net.sf.fmj.media
Class AbstractDataSink

java.lang.Object
  extended by net.sf.fmj.media.AbstractDataSink
All Implemented Interfaces:
Controls, DataSink, MediaHandler
Direct Known Subclasses:
Handler, Handler, StreamDataSink

public abstract class AbstractDataSink
extends java.lang.Object
implements DataSink

Abstract base class to implement DataSink.

Author:
Ken Larson

Field Summary
protected  MediaLocator outputLocator
           
 
Constructor Summary
AbstractDataSink()
           
 
Method Summary
 void addDataSinkListener(DataSinkListener listener)
           
 MediaLocator getOutputLocator()
           
protected  void notifyDataSinkListeners(DataSinkEvent event)
           
 void removeDataSinkListener(DataSinkListener listener)
           
 void setOutputLocator(MediaLocator output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.DataSink
close, getContentType, open, start, stop
 
Methods inherited from interface javax.media.MediaHandler
setSource
 
Methods inherited from interface javax.media.Controls
getControl, getControls
 

Field Detail

outputLocator

protected MediaLocator outputLocator
Constructor Detail

AbstractDataSink

public AbstractDataSink()
Method Detail

addDataSinkListener

public void addDataSinkListener(DataSinkListener listener)
Specified by:
addDataSinkListener in interface DataSink

removeDataSinkListener

public void removeDataSinkListener(DataSinkListener listener)
Specified by:
removeDataSinkListener in interface DataSink

notifyDataSinkListeners

protected void notifyDataSinkListeners(DataSinkEvent event)

setOutputLocator

public void setOutputLocator(MediaLocator output)
Specified by:
setOutputLocator in interface DataSink

getOutputLocator

public MediaLocator getOutputLocator()
Specified by:
getOutputLocator in interface DataSink