Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.robrohan.treebeard
Class TreeTransform  view TreeTransform download TreeTransform.java

java.lang.Object
  extended bycom.robrohan.treebeard.TreeTransform

public class TreeTransform
extends java.lang.Object

The Workhorse of treebeard. This is where the xslt is applied to an xml document


Field Summary
static int FOP_PDF
          do a fop pdf transfrom (xml+fo_xslt=pdf file)
static int FOP_PREVIEW
          do a fop pdf transfrom with preview (xml+fo_xslt=pdf preview)
static int NORMAL_TRANSFORM
          Do a normal transform
 java.util.Vector xslParams
          The params to send to the xml+xslt process (the xslt params defined with the <xsl:param tag
 java.lang.String XSLTFactory
          handle to the selected XSLTFactory (set in settings)
 
Constructor Summary
TreeTransform()
          Creates a new instance of Transformer
 
Method Summary
 long FOPtransform(java.io.InputStream xmlin, java.io.InputStream xslin, java.io.OutputStream output, byte type)
          Does the actual transform xml+fop_xslt
 long transform(java.io.InputStream xmlin, java.io.InputStream xslin, java.io.OutputStream output)
          Does the actual transform xml+xslt (non FOP)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMAL_TRANSFORM

public static final int NORMAL_TRANSFORM
Do a normal transform

See Also:
Constant Field Values

FOP_PDF

public static final int FOP_PDF
do a fop pdf transfrom (xml+fo_xslt=pdf file)

See Also:
Constant Field Values

FOP_PREVIEW

public static final int FOP_PREVIEW
do a fop pdf transfrom with preview (xml+fo_xslt=pdf preview)

See Also:
Constant Field Values

XSLTFactory

public java.lang.String XSLTFactory
handle to the selected XSLTFactory (set in settings)


xslParams

public java.util.Vector xslParams
The params to send to the xml+xslt process (the xslt params defined with the <xsl:param tag

Constructor Detail

TreeTransform

public TreeTransform()
Creates a new instance of Transformer

Method Detail

transform

public long transform(java.io.InputStream xmlin,
                      java.io.InputStream xslin,
                      java.io.OutputStream output)
               throws java.lang.Exception
Does the actual transform xml+xslt (non FOP)


FOPtransform

public long FOPtransform(java.io.InputStream xmlin,
                         java.io.InputStream xslin,
                         java.io.OutputStream output,
                         byte type)
                  throws java.lang.Exception
Does the actual transform xml+fop_xslt