INRIA & FluxMedia

fr.fluxmedia.tmcontrib.serializer
Class PDFSerializer

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.PDFSerializer
All Implemented Interfaces:
TProcess, java.lang.Runnable

public final class PDFSerializer
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="fop" class="fr.fluxmedia.transmorpher.tmcontrib.serializer.PDFSerializer/>

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

< serialize id="outputPDF" type="fop" in="out1" >

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

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

< /serialize >

Available formats are :

Compiling: following libs are required

Running: following libs are required

Author:
triolet

Field Summary
protected  Driver driver
          The object which creates pdf,ps with fo
protected  org.xml.sax.ContentHandler handler
           
 
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
PDFSerializer(java.lang.String[] pIn, Parameters pParam, StringParameters pStaticAttributes)
          Constructor for the PDFSerializer object
 
Method Summary
 org.xml.sax.ContentHandler getContentHandler()
          Gets the contentHandler attribute of the PDFSerializer object
 void setOutputStream()
          Sets the outputStream of this PDFSerializer 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

driver

protected Driver driver
The object which creates pdf,ps with fo


handler

protected org.xml.sax.ContentHandler handler
Constructor Detail

PDFSerializer

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

Parameters:
pIn - in ports
pParam - the parameters of this component
pStaticAttributes - static attributes of this component
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 of this PDFSerializer 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...