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(java.io.File xslFile, java.io.File inputFile, java.io.File outFile, java.util.Map<java.lang.String,java.lang.Object> params)
          Launches an XSLT conversion from a source to an OutputStream.
 void convert(java.io.File xslFile, org.xml.sax.InputSource inputFile, java.io.File outFile, java.util.Map<java.lang.String,java.lang.Object> params)
          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.
 void convert(javax.xml.transform.stream.StreamSource xslSource, java.io.File inputFile, java.io.File outFile, java.util.Map<java.lang.String,java.lang.Object> params)
          Launches an XSLT conversion from a source to an OutputStream.
 void convert(javax.xml.transform.stream.StreamSource xslSource, org.xml.sax.InputSource inputFile, java.io.File outFile, java.util.Map<java.lang.String,java.lang.Object> params)
          Launches an XSLT conversion from a source to an OutputStream.
 java.lang.String convertAndReturn(java.io.File xslFile, java.io.File inputFile, java.io.File outFile, java.util.Map<java.lang.String,java.lang.Object> params)
          Launches an XSLT conversion from a source to an OutputStream.
 java.lang.String convertAndReturn(java.io.File xslFile, org.xml.sax.InputSource inputFile, java.util.Map<java.lang.String,java.lang.Object> params)
          Launches an XSLT conversion from a source to an OutputStream.
 java.lang.String convertAndReturn(javax.xml.transform.stream.StreamSource xslSource, java.io.File inputFile, java.util.Map<java.lang.String,java.lang.Object> params)
          Launches an XSLT conversion from a source to an OutputStream.
 java.lang.String convertAndReturn(javax.xml.transform.stream.StreamSource xslSource, org.xml.sax.InputSource inputFile, java.util.Map<java.lang.String,java.lang.Object> params)
          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

convertAndReturn

public java.lang.String convertAndReturn(java.io.File xslFile,
                                         org.xml.sax.InputSource inputFile,
                                         java.util.Map<java.lang.String,java.lang.Object> params)
                                  throws ConversionException
Launches an XSLT conversion from a source to an OutputStream. This methods uses the net.sf.saxon packages.

Parameters:
xslFile - the xsl file
inputFile - the input file
params - the parameter map
Returns:
the converted string
Throws:
ConversionException - the convert exception

convertAndReturn

public java.lang.String convertAndReturn(java.io.File xslFile,
                                         java.io.File inputFile,
                                         java.io.File outFile,
                                         java.util.Map<java.lang.String,java.lang.Object> params)
                                  throws ConversionException
Launches an XSLT conversion from a source to an OutputStream. This methods uses the net.sf.saxon packages.

Parameters:
xslFile - the xsl file
inputFile - the input file
outFile - the output file
params - the parameter map
Returns:
the converted string
Throws:
ConversionException - the convert exception

convert

public void convert(java.io.File xslFile,
                    java.io.File inputFile,
                    java.io.File outFile,
                    java.util.Map<java.lang.String,java.lang.Object> params)
             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
params - the parameter map
Throws:
ConversionException - the convert exception

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

convertAndReturn

public java.lang.String convertAndReturn(javax.xml.transform.stream.StreamSource xslSource,
                                         java.io.File inputFile,
                                         java.util.Map<java.lang.String,java.lang.Object> params)
                                  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
params - the parameter map
Returns:
the converted string
Throws:
ConversionException - the convert exception

convert

public void convert(javax.xml.transform.stream.StreamSource xslSource,
                    java.io.File inputFile,
                    java.io.File outFile,
                    java.util.Map<java.lang.String,java.lang.Object> params)
             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
params - the parameter map
Throws:
ConversionException - the convert exception

convert

public void convert(java.io.File xslFile,
                    org.xml.sax.InputSource inputFile,
                    java.io.File outFile,
                    java.util.Map<java.lang.String,java.lang.Object> params)
             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
params - the parameter map
Throws:
ConversionException - the convert exception

convertAndReturn

public java.lang.String convertAndReturn(javax.xml.transform.stream.StreamSource xslSource,
                                         org.xml.sax.InputSource inputFile,
                                         java.util.Map<java.lang.String,java.lang.Object> params)
                                  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
params - the parameter map
Returns:
the converted string
Throws:
ConversionException - the convert exception

convert

public void convert(javax.xml.transform.stream.StreamSource xslSource,
                    org.xml.sax.InputSource inputFile,
                    java.io.File outFile,
                    java.util.Map<java.lang.String,java.lang.Object> params)
             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
params - the parameter map
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.