com.aurigalogic.aurigadoc.util
Class Util

java.lang.Object
  extended bycom.aurigalogic.aurigadoc.util.Util

public class Util
extends java.lang.Object

Utility class.

Version:
$Revision: 1 $ $Date: 2005-10-07 18:15:00 +0530 (Fri, 07 Oct 2005) $
Author:
Khurshidali Shaikh

Method Summary
static void doXSLTransform(java.io.InputStream inputStream, java.io.OutputStream outputStream, java.lang.String xslFile, java.lang.String outputMethod, java.util.Properties params)
          Takes the xml source and write the output to the given stream by doing an xsl transformation.
static byte[] mergeDocument(java.lang.String fileName)
          Merges a document by resolving all xincludes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doXSLTransform

public static void doXSLTransform(java.io.InputStream inputStream,
                                  java.io.OutputStream outputStream,
                                  java.lang.String xslFile,
                                  java.lang.String outputMethod,
                                  java.util.Properties params)
                           throws java.lang.Exception
Takes the xml source and write the output to the given stream by doing an xsl transformation.

Parameters:
inputStream - the input stream
outputStream - the output stream
xslFile - the xsl file path
outputMethod - the output method(text,html,xml)
Throws:
java.lang.Exception - in case of an error.

mergeDocument

public static byte[] mergeDocument(java.lang.String fileName)
                            throws java.lang.Exception
Merges a document by resolving all xincludes.

Parameters:
fileName - the xml file name.
Returns:
the resulting byte aray
Throws:
java.lang.Exception


Auriga Logic Pvt. Ltd. (http://www.aurigalogic.com/)