INRIA & FluxMedia

fr.fluxmedia.transmorpher.engine
Class TSerializer

java.lang.Object
  extended by fr.fluxmedia.transmorpher.engine.TProcess_Impl
      extended by fr.fluxmedia.transmorpher.engine.TProcessBasic
          extended by fr.fluxmedia.transmorpher.engine.TSerializer
All Implemented Interfaces:
TProcess, java.lang.Runnable
Direct Known Subclasses:
PDFSerializer, RTFSerializer, StdOut, SVGSerializer, WriteFile, writevcs

public abstract class TSerializer
extends TProcessBasic

This class offer a serializer mechanisme. A way to finish the transphormation process bye writing XML output file

Since:
jdk 1.3 && SAX 2.0
Author:
laurent tardif@inrialpes.fr, triolet

Field Summary
 java.lang.String fileName
          the name of the file to write
 java.lang.String format
          the format of the file
protected  java.io.OutputStream outputStream
          the output stream to write
 boolean printNull
          Description of the Field
 boolean printOut
          Description of the Field
 
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
TSerializer(java.lang.String[] pIn, Parameters pParam, StringParameters pStaticAttributes)
          Constructor for the TSerializer object
 
Method Summary
 void bindParameters(Parameters p)
          Binds parameters of this object
 void generatePort()
          Creates port of this component with the the corresponding handler.
abstract  org.xml.sax.ContentHandler getContentHandler()
          Gets the contentHandler attribute of the TSerializer object
 java.io.OutputStream getOutputStream()
          Gets the outputStream attribute of the TSerializer object
 void initParameters()
           
 void printNull(boolean printNull)
          Sets printNull flag to true or false
 void printStdout(boolean printOut)
          Sets printOut flag to true or false
 void setOutputStream()
          Sets the outputStream attribute of the TSerializer object
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic
execProcess, getFinished, getType, run, setFinished, setThread, setType
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl
getFatherName, getId, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameterNames, getParameters, reset, 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

printOut

public boolean printOut
Description of the Field


printNull

public boolean printNull
Description of the Field


fileName

public java.lang.String fileName
the name of the file to write


format

public java.lang.String format
the format of the file


outputStream

protected java.io.OutputStream outputStream
the output stream to write

Constructor Detail

TSerializer

public TSerializer(java.lang.String[] pIn,
                   Parameters pParam,
                   StringParameters pStaticAttributes)
Constructor for the TSerializer object

Parameters:
pIn - in ports
pParam - the parameters of this component
pStaticAttributes - static attributes of this component
Method Detail

setOutputStream

public void setOutputStream()
                     throws TMRuntimeException,
                            TMException,
                            org.xml.sax.SAXException
Sets the outputStream attribute of the TSerializer object

Throws:
TMRuntimeException - Description of the Exception
TMException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception

bindParameters

public void bindParameters(Parameters p)
                    throws TMRuntimeException,
                           TMException,
                           org.xml.sax.SAXException
Binds parameters of this object

Specified by:
bindParameters in interface TProcess
Overrides:
bindParameters in class TProcess_Impl
Parameters:
p - parameters to bind
Throws:
TMRuntimeException - Description of the Exception
TMException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception

getContentHandler

public abstract org.xml.sax.ContentHandler getContentHandler()
Gets the contentHandler attribute of the TSerializer object

Returns:
The contentHandler value

getOutputStream

public java.io.OutputStream getOutputStream()
Gets the outputStream attribute of the TSerializer object

Returns:
The outputStream value

generatePort

public void generatePort()
Creates port of this component with the the corresponding handler. If PrintNull is set to true, port is create with a DefaultHandler which don't do anything.

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

printStdout

public void printStdout(boolean printOut)
Sets printOut flag to true or false

Parameters:
printOut - true or false

printNull

public void printNull(boolean printNull)
Sets printNull flag to true or false

Parameters:
printNull - true or false

initParameters

public void initParameters()
Overrides:
initParameters in class TProcessBasic

INRIA & FluxMedia

..no bottom yet...