INRIA & FluxMedia

fr.fluxmedia.transmorpher.TProcessFactory
Class TDispatcher

java.lang.Object
  |
  +--fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
        |
        +--fr.fluxmedia.transmorpher.TProcessFactory.TProcessBasic
              |
              +--fr.fluxmedia.transmorpher.TProcessFactory.TDispatcher
All Implemented Interfaces:
ContentHandler, TProcess

public final class TDispatcher
extends TProcessBasic
implements ContentHandler

this class define the dispatcher process. dispatch one data flow to different process.

Since:
jdk 1.2 SAX 2.0

Field Summary
(package private)  ContentHandler[] iListOfContent
          a list of content handler to dispatch information
 
Fields inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
iListIn, iListOut, iName, iNbIn, iNbOut
 
Constructor Summary
TDispatcher(String[] pIn, String[] pOut)
          the constructor
 
Method Summary
 void characters(char[] ch, int start, int length)
          the characters method of content handler interface
 void endDocument()
          the endDocument method of content handler interface
 void endElement(String ns, String localName, String name)
          the endElement method of content handler interface
 void endPrefixMapping(String prefix)
          the endPrefixMapping method of content handler interface
 void ignorableWhitespace(char[] ch, int start, int length)
          the ignorableWhitespace method of content handler interface
 TProcess internalCopy()
          The copy of this element.
 void processingInstruction(String target, String data)
          the processingInstruction method of content handler interface
 void setContentHandler(int i, ContentHandler pContentHandler)
          set a content handler
 void setDocumentLocator(Locator locator)
          the setDocumentLocator method of content handler interface
 void skippedEntity(String name)
          the skippedEntity method of content handler interface
 void startDocument()
          the startDocument method of content handler interface
 void startElement(String ns, String localName, String name, Attributes atts)
          the start element method of content handler interface
 void startPrefixMapping(String prefix, String uri)
          the startPrefixMapping method of content handler interface
 
Methods inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
Copy, getIn, getIn, getName, getOut, getOut, setIn, setName, setOut
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

iListOfContent

ContentHandler[] iListOfContent
a list of content handler to dispatch information
Constructor Detail

TDispatcher

public TDispatcher(String[] pIn,
                   String[] pOut)
the constructor
Method Detail

setContentHandler

public final void setContentHandler(int i,
                                    ContentHandler pContentHandler)
set a content handler

startElement

public final void startElement(String ns,
                               String localName,
                               String name,
                               Attributes atts)
                        throws SAXException
the start element method of content handler interface
Specified by:
startElement in interface ContentHandler

endElement

public final void endElement(String ns,
                             String localName,
                             String name)
                      throws SAXException
the endElement method of content handler interface
Specified by:
endElement in interface ContentHandler

setDocumentLocator

public final void setDocumentLocator(Locator locator)
the setDocumentLocator method of content handler interface
Specified by:
setDocumentLocator in interface ContentHandler

startDocument

public final void startDocument()
                         throws SAXException
the startDocument method of content handler interface
Specified by:
startDocument in interface ContentHandler

endDocument

public final void endDocument()
                       throws SAXException
the endDocument method of content handler interface
Specified by:
endDocument in interface ContentHandler

skippedEntity

public final void skippedEntity(String name)
                         throws SAXException
the skippedEntity method of content handler interface
Specified by:
skippedEntity in interface ContentHandler

processingInstruction

public final void processingInstruction(String target,
                                        String data)
                                 throws SAXException
the processingInstruction method of content handler interface
Specified by:
processingInstruction in interface ContentHandler

ignorableWhitespace

public final void ignorableWhitespace(char[] ch,
                                      int start,
                                      int length)
                               throws SAXException
the ignorableWhitespace method of content handler interface
Specified by:
ignorableWhitespace in interface ContentHandler

characters

public final void characters(char[] ch,
                             int start,
                             int length)
                      throws SAXException
the characters method of content handler interface
Specified by:
characters in interface ContentHandler

startPrefixMapping

public final void startPrefixMapping(String prefix,
                                     String uri)
                              throws SAXException
the startPrefixMapping method of content handler interface
Specified by:
startPrefixMapping in interface ContentHandler

endPrefixMapping

public final void endPrefixMapping(String prefix)
                            throws SAXException
the endPrefixMapping method of content handler interface
Specified by:
endPrefixMapping in interface ContentHandler

internalCopy

public final TProcess internalCopy()
The copy of this element. The method was call by the copy method of the _Process_impl class
Overrides:
internalCopy in class TProcess_Impl

INRIA & FluxMedia

...