fr.fluxmedia.transmorpher.engine
Class TMerger
java.lang.Object
|
+--fr.fluxmedia.transmorpher.engine.TProcess_Impl
|
+--fr.fluxmedia.transmorpher.engine.TProcessBasic
|
+--fr.fluxmedia.transmorpher.engine.TMerger
- All Implemented Interfaces:
- java.lang.Runnable, TProcess
- 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)
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.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, registerNatives, toString, wait, wait, wait |
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
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 namespOut
- out port namespParam
- Description of the Parameterhdl
- handler which have to manage the merger
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()
- 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.
- Overrides:
generatePort
in class TProcess_Impl
..no bottom yet...