|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openoffice.xmerge.PluginFactory | +--org.openoffice.xmerge.converter.xml.sxw.SxwPluginFactory
General implementation of the PluginFactory
interface
for SXW documents.
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 |
public SxwPluginFactory(ConverterInfo ci)
ConvertInfo
that
corresponds to the registry information for this plug-in.ci
- ConvertInfo
object.Method Detail |
public Document createOfficeDocument(java.lang.String name, java.io.InputStream is) throws java.io.IOException
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.
createOfficeDocument
in class PluginFactory
org.openoffice.xmerge.PluginFactory
name
- The Document
name.is
- InputStream
object corresponding
to the Document
.Document
object representing the
particular Document
format for the
PluginFactory
.java.io.IOException
- If any I/O error occurs.public Document createOfficeDocument(java.lang.String name, java.io.InputStream is, boolean isZip) throws java.io.IOException
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.
createOfficeDocument
in class PluginFactory
org.openoffice.xmerge.PluginFactory
name
- The Document
name.is
- InputStream
object corresponding
to the Document
.isZip
- boolean
to show that the created office
document is to be zipped.Document
object representing the
particular Document
format for the
PluginFactory
.java.io.IOException
- If any I/O error occurs.
|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |