fr.fluxmedia.transmorpher.stdlib
Class writefile
java.lang.Object
|
+--fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
|
+--fr.fluxmedia.transmorpher.TProcessFactory.TProcessBasic
|
+--fr.fluxmedia.transmorpher.TProcessFactory.TSerializer
|
+--fr.fluxmedia.transmorpher.stdlib.writefile
- All Implemented Interfaces:
- TProcess
- public final class writefile
- extends TSerializer
This class offer a serializer mechanisme. A way to finish the transphormation process
by writing XML output file
- Since:
- jdk 1.3 && SAX 2.0
- Author:
- laurent tardif@inrialpes.fr
Fields inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcessBasic |
type |
Method Summary |
void |
generatePort()
Generates ports for this component |
protected javax.xml.transform.sax.SAXTransformerFactory |
getTransformerFactory()
|
void |
reset()
|
void |
setOutputStream()
Sets the ouput file of this serializer
path is needed when this serializer is used inside a loop. |
Methods inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl |
getFatherName, getId, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameterNames, getParameters, setFatherName, setId, setIn, setName, setOut, setParameter, setParameters |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
handler
javax.xml.transform.sax.TransformerHandler handler
DEFAULT_BUFFER_SIZE
static final int DEFAULT_BUFFER_SIZE
outputBufferSize
int outputBufferSize
tfactory
javax.xml.transform.sax.SAXTransformerFactory tfactory
writefile
public writefile(java.lang.String[] pIn,
Parameters pParam,
StringParameters pStaticAttributes)
throws org.xml.sax.SAXException,
java.io.IOException
- Constructor for the writefile object
- Parameters:
pIn
- in ports of this objectpParam
- Description of the ParameterpStaticAttributes
- Description of the Parameter- Throws:
org.xml.sax.SAXException
- Description of the Exceptionjava.io.IOException
- Description of the Exception
getTransformerFactory
protected javax.xml.transform.sax.SAXTransformerFactory getTransformerFactory()
setOutputStream
public void setOutputStream()
- Sets the ouput file of this serializer
path is needed when this serializer is used inside a loop.
- Overrides:
setOutputStream
in class TSerializer
- Parameters:
name
- The file name to write in
reset
public void reset()
- Overrides:
reset
in class TProcess_Impl
generatePort
public void generatePort()
- Generates ports for this component
- Overrides:
generatePort
in class TProcess_Impl
..no bottom yet...