INRIA & FluxMedia

fr.fluxmedia.transmorpher.engine
Class TMerger

java.lang.Object
  extended by fr.fluxmedia.transmorpher.engine.TProcess_Impl
      extended by fr.fluxmedia.transmorpher.engine.TProcessBasic
          extended by fr.fluxmedia.transmorpher.engine.TMerger
All Implemented Interfaces:
TProcess, java.lang.Runnable
Direct Known Subclasses:
Concat, Wrap

public abstract class TMerger
extends TProcessBasic

This class based on the TProcessBasic allow to define a Connector. A connector is a N -> 1 element. It 's allow to merge a set of ContentHandler flow

Since:
jdk 1.2 / SAX 2.0
Author:
Laurent Tardif (laurent.tardif@inrialpes.fr)

Field Summary
(package private)  BufferingHandler[] handlerList
          The list of SAX handlers
 int iCurrentHandler
          The number of the current handler
(package private)  org.xml.sax.ContentHandler managingHandler
          The controller handler
(package private)  org.xml.sax.ContentHandler outputHandler
          The output handler
 
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic
finished, isThread, param, procThread, type
 
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl
debug, id, iListIn, iListOfParameters, iListOut, iName, iNbIn, iNbOut, nameFather, nameIn, nameOut
 
Constructor Summary
TMerger(java.lang.String[] pIn, java.lang.String[] pOut, Parameters pParam, org.xml.sax.ContentHandler hdl)
          Constructor for the TMerger object
 
Method Summary
 void generatePort()
          Generates ports for this component.
 org.xml.sax.ContentHandler getContentHandler()
          Allow to get the content handler for in port
 BufferingHandler getHandler(int p)
          return a handler
 org.xml.sax.ContentHandler getManagingHandler()
          Allow to get the content handler for in port
 void isFinished()
          when a BufferingHandler is finished, we execute the stack of the next handler, and set it active
 void reset()
           
 void setContentHandler(org.xml.sax.ContentHandler pContentHandler)
          Allow to set the content handler on Mixer for out port
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic
execProcess, getFinished, getType, initParameters, run, setFinished, setThread, setType
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl
bindParameters, getFatherName, getId, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameterNames, getParameters, setDebug, setFatherName, setId, setIn, setName, setOut, setParameter, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handlerList

BufferingHandler[] handlerList
The list of SAX handlers


iCurrentHandler

public int iCurrentHandler
The number of the current handler


outputHandler

org.xml.sax.ContentHandler outputHandler
The output handler


managingHandler

org.xml.sax.ContentHandler managingHandler
The controller handler

Constructor Detail

TMerger

public TMerger(java.lang.String[] pIn,
               java.lang.String[] pOut,
               Parameters pParam,
               org.xml.sax.ContentHandler hdl)
Constructor for the TMerger object

Parameters:
pIn - in port names
pOut - out port names
pParam - Description of the Parameter
hdl - handler which have to manage the merger
Method Detail

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler pContentHandler)
Allow to set the content handler on Mixer for out port

Parameters:
pContentHandler - The new contentHandler value

reset

public void reset()
Specified by:
reset in interface TProcess
Overrides:
reset in class TProcess_Impl

getContentHandler

public org.xml.sax.ContentHandler getContentHandler()
Allow to get the content handler for in port

Returns:
The contentHandler value

getManagingHandler

public org.xml.sax.ContentHandler getManagingHandler()
Allow to get the content handler for in port

Returns:
The managingHandler value

getHandler

public final BufferingHandler getHandler(int p)
return a handler

Parameters:
p - index of handler in handler list
Returns:
The handler value

isFinished

public final void isFinished()
                      throws org.xml.sax.SAXException
when a BufferingHandler is finished, we execute the stack of the next handler, and set it active

Throws:
org.xml.sax.SAXException - Encapsulate a general SAX error or warning.

generatePort

public void generatePort()
Generates ports for this component.

Specified by:
generatePort in interface TProcess
Specified by:
generatePort in class TProcess_Impl

INRIA & FluxMedia

..no bottom yet...