INRIA & FluxMedia

fr.fluxmedia.tmcontrib.serializer
Class RTFSerializer

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
              extended by fr.fluxmedia.tmcontrib.serializer.RTFSerializer
All Implemented Interfaces:
TProcess, java.lang.Runnable

public final class RTFSerializer
extends TSerializer

This class allows transmorpher to produce pdf or ps. To use this serializer, transmorpher has to know it. To do this, just add the following declaration of defextern in the process file :

< defextern name="rtf" class="fr.fluxmedia.transmorpher.tmcontrib.serializer.RTFSerializer/>

A rtf serializer can now be declared in the process file :

< serialize id="outputRTF" type="rtf" in="out1" >

< with-param name="file"> ../samples/fo-sample/output/${filename}.rtf < /with-param >

< with-param name="format"> pdf < /with-param >

< /serialize >

Available format is :

Compiling: following jar is required

Running: following jar is required

Author:
triolet

Nested Class Summary
(package private)  class RTFSerializer.DebugOutputStream
          An utility class to control the outputs of the jFor converter.
 
Field Summary
private  Converter handler
          a handler to convert fo to rtf
private  java.io.Writer rtfWriter
          the writer
 
Fields inherited from class fr.fluxmedia.transmorpher.engine.TSerializer
fileName, format, outputStream, printNull, printOut
 
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, iListOut, iNbIn, iNbOut, nameFather, nameIn, nameOut
 
Constructor Summary
RTFSerializer(java.lang.String[] pIn, Parameters pParam, StringParameters pStaticAttributes)
          Constructor for the RTFSerializer object
 
Method Summary
 org.xml.sax.ContentHandler getContentHandler()
          Gets the contentHandler attribute of the PDFSerializer object
 void setOutputStream()
          Sets the outputStream attribute of the RTFSerializer object
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TSerializer
bindParameters, generatePort, getOutputStream, initParameters, printNull, printStdout
 
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

rtfWriter

private java.io.Writer rtfWriter
the writer


handler

private Converter handler
a handler to convert fo to rtf

Constructor Detail

RTFSerializer

public RTFSerializer(java.lang.String[] pIn,
                     Parameters pParam,
                     StringParameters pStaticAttributes)
              throws org.xml.sax.SAXException,
                     java.io.IOException
Constructor for the RTFSerializer object

Parameters:
pIn - in ports
pParam - the parameters of this serializer
pStaticAttributes - Description of the Parameter
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
java.io.IOException - Description of the Exception
Method Detail

getContentHandler

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

Specified by:
getContentHandler in class TSerializer
Returns:
The contentHandler value

setOutputStream

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

Overrides:
setOutputStream in class TSerializer
Throws:
TMRuntimeException - Description of the Exception
TMException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception

INRIA & FluxMedia

..no bottom yet...