OpenOffice.org
XMerge API

org.openoffice.xmerge.converter.xml.sxw
Class SxwPluginFactory

java.lang.Object
  |
  +--org.openoffice.xmerge.PluginFactory
        |
        +--org.openoffice.xmerge.converter.xml.sxw.SxwPluginFactory
Direct Known Subclasses:
PluginFactoryImpl, PluginFactoryImpl

public abstract class SxwPluginFactory
extends PluginFactory

General implementation of the PluginFactory interface for SXW documents.

See Also:
DocumentDeserializer, DocumentMerger, DocumentSerializer

Constructor Summary
SxwPluginFactory(ConverterInfo ci)
          Constructor that caches the ConvertInfo that corresponds to the registry information for this plug-in.
 
Method Summary
 Document createOfficeDocument(java.lang.String name, java.io.InputStream is)
          Create a Document object that corresponds to the Office data passed in via the InputStream object.
 Document createOfficeDocument(java.lang.String name, java.io.InputStream is, boolean isZip)
          Create a Document object that corresponds to the Office data passed in via the InputStream object.
 
Methods inherited from class org.openoffice.xmerge.PluginFactory
createDeviceDocument, getConverterInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SxwPluginFactory

public SxwPluginFactory(ConverterInfo ci)
Constructor that caches the ConvertInfo that corresponds to the registry information for this plug-in.
Parameters:
ci - ConvertInfo object.
Method Detail

createOfficeDocument

public Document createOfficeDocument(java.lang.String name,
                                     java.io.InputStream is)
                              throws java.io.IOException
Description copied from class: PluginFactory

Create a Document object that corresponds to the Office data passed in via the InputStream object. This abstract method must be implemented for each plug-in.

This method will read from the given InputStream object. The returned Document object will contain the necessary data for the other objects created by the PluginFactory to process, like a DocumentSerializer object and a DocumentMerger object.

Overrides:
createOfficeDocument in class PluginFactory
Following copied from class: org.openoffice.xmerge.PluginFactory
Parameters:
name - The Document name.
is - InputStream object corresponding to the Document.
Returns:
A Document object representing the particular Document format for the PluginFactory.
Throws:
java.io.IOException - If any I/O error occurs.

createOfficeDocument

public Document createOfficeDocument(java.lang.String name,
                                     java.io.InputStream is,
                                     boolean isZip)
                              throws java.io.IOException
Description copied from class: PluginFactory

Create a Document object that corresponds to the Office data passed in via the InputStream object. This abstract method must be implemented for each plug-in.

This method will read from the given InputStream object. The returned Document object will contain the necessary data for the other objects created by the PluginFactory to process, like a DocumentSerializer object and a DocumentMerger object.

Overrides:
createOfficeDocument in class PluginFactory
Following copied from class: org.openoffice.xmerge.PluginFactory
Parameters:
name - The Document name.
is - InputStream object corresponding to the Document.
isZip - boolean to show that the created office document is to be zipped.
Returns:
A Document object representing the particular Document format for the PluginFactory.
Throws:
java.io.IOException - If any I/O error occurs.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org