OpenOffice.org
XMerge API

org.openoffice.xmerge.converter.xml.xslt
Class DocumentSerializerImpl

java.lang.Object
  |
  +--org.openoffice.xmerge.converter.xml.xslt.DocumentSerializerImpl
All Implemented Interfaces:
DocumentSerializer

public final class DocumentSerializerImpl
extends java.lang.Object
implements DocumentSerializer

Xslt implementation of org.openoffice.xmerge.DocumentSerializer for the PluginFactoryImpl.

The serialize method transforms the DOM document from the given Document object by means of a supplied Xsl Stylesheet.


Constructor Summary
DocumentSerializerImpl(PluginFactoryImpl pf, Document doc)
          Constructor.
 
Method Summary
 ConvertData serialize()
          Method to convert a Document with an xsl stylesheet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentSerializerImpl

public DocumentSerializerImpl(PluginFactoryImpl pf,
                              Document doc)
Constructor.
Parameters:
pf - A PluginFactoryImpl
doc - A SXW Document to be converted.
Method Detail

serialize

public ConvertData serialize()
                      throws ConvertException,
                             java.io.IOException
Method to convert a Document with an xsl stylesheet. It creates a Document object, which is then transformed with the Xslt processer. A ConvertData object is constructed and returned.
Specified by:
serialize in interface DocumentSerializer
Throws:
ConvertException - If any I/O error occurs.
java.io.IOException - If any I/O error occurs.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org