net.sf.fmj.media.content.merge
Class Handler

java.lang.Object
  extended by net.sf.fmj.media.content.merge.Handler
All Implemented Interfaces:
MediaHandler, MediaProxy
Direct Known Subclasses:
Handler

public class Handler
extends java.lang.Object
implements MediaProxy

MediaProxy Handler for merge protocol/content type, allowing multiple merged data sources to be specified with a single URL. Creates a merging datasource from all of the component datasources that correspond to the (multiple) URLs embedded within the URL. The separator characters used to separate the embedded URLs are arbitrary, and are determined by looking at the first and last character in the remainder. This allows plenty of choices for avoiding conflicts with characters within the embedded URLs. Examples: merge:[civil:/0][javasound://0] merge:{civil:/0}{javasound://0} merge:

Author:
Ken Larson

Constructor Summary
Handler()
           
 
Method Summary
 DataSource getDataSource()
           
 void setSource(DataSource source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

getDataSource

public DataSource getDataSource()
                         throws java.io.IOException,
                                NoDataSourceException
Specified by:
getDataSource in interface MediaProxy
Throws:
java.io.IOException
NoDataSourceException

setSource

public void setSource(DataSource source)
               throws java.io.IOException,
                      IncompatibleSourceException
Specified by:
setSource in interface MediaHandler
Throws:
java.io.IOException
IncompatibleSourceException