INRIA & FluxMedia

fr.fluxmedia.tmcontrib.serializer
Class writevcs

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

public final class writevcs
extends TSerializer

This class allows transmorpher to produce vcard of vcal files 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="vcs" class="fr.fluxmedia.transmorpher.tmcontrib.serializer.writevcs/>

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

< serialize id="outputVCS" type="vcs" in="out1" >

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

< with-param name="type"> vcard < /with-param >

< /serialize >

Available types are :

Compiling: following jar is required

Running: following jar is required

Author:
Charre Bruno

Field Summary
protected  boolean card
          True if the file is a vCard
protected  vcsHandler vcs
          a handler to write vcard or vcal
 
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
writevcs(java.lang.String[] pIn, Parameters pParam, StringParameters pStaticAttributes)
          Constructor for the writevcs object
 
Method Summary
 org.xml.sax.ContentHandler getContentHandler()
          Gets the contentHandler attribute of the writevcs object
 void setOutputStream()
          Sets the ouput of this serializer
 
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

vcs

protected vcsHandler vcs
a handler to write vcard or vcal


card

protected boolean card
True if the file is a vCard

Constructor Detail

writevcs

public writevcs(java.lang.String[] pIn,
                Parameters pParam,
                StringParameters pStaticAttributes)
Constructor for the writevcs 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 ouput of this serializer

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

getContentHandler

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

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

INRIA & FluxMedia

..no bottom yet...