com.thalesgroup.dtkit.util.converter
Class ConversionService

java.lang.Object
  extended by com.thalesgroup.dtkit.util.converter.ConversionService
All Implemented Interfaces:
java.io.Serializable

public class ConversionService
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ConversionService()
           
 
Method Summary
 void convert(java.io.File xslFile, java.io.File inputFile, java.io.File outFile)
          Launches an XSLT conversion from a source to an OutputStream.
 void convert(javax.xml.transform.stream.StreamSource xslSource, java.io.File inputFile, java.io.File outFile)
          Launches an XSLT conversion from a source to an OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionService

public ConversionService()
Method Detail

convert

public void convert(java.io.File xslFile,
                    java.io.File inputFile,
                    java.io.File outFile)
             throws ConversionException
Launches an XSLT conversion from a source to an OutputStream.

Parameters:
xslFile - the xsl file
inputFile - the input file
outFile - the output file
Throws:
ConversionException - the convert exception

convert

public void convert(javax.xml.transform.stream.StreamSource xslSource,
                    java.io.File inputFile,
                    java.io.File outFile)
             throws ConversionException
Launches an XSLT conversion from a source to an OutputStream. This methods uses the net.sf.saxon packages.

Parameters:
xslSource - the source of the xsl
inputFile - the input file
outFile - the output file
Throws:
ConversionException - the convert exception


Copyright © 2010. All Rights Reserved.