|
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.sxc.SxcPluginFactory | +--org.openoffice.xmerge.converter.xml.sxc.pexcel.PluginFactoryImpl
Pocket Excel implementation of the PluginFactory
.
This encapsulates conversion of StarCalc XML format to and from
Pocket Excel format.
The superclass produces a particular
Document
object, i.e. SxcDocument
that the converters in this class works with. Thus,
this class only implements the methods that produces the converters,
i.e. DocumentSerializer
and DocumentDeserializer
;
as well as the ConverterCapabilities
object that is specific to this format
conversion. That superclass also produces a DocumentMerger
object, i.e. DocumentMergerImpl
which this class derives the functionality.
Constructor Summary | |
PluginFactoryImpl(ConverterInfo ci)
|
Method Summary | |
Document |
createDeviceDocument(java.lang.String name,
java.io.InputStream is)
Create a Document object that corresponds to
the device data passed in via the InputStream
object. |
DocumentDeserializer |
createDocumentDeserializer(ConvertData cd)
Returns an instance of DocumentDeserializerImpl ,
which is an implementation of DocumentDeserializer
interface. |
DocumentMerger |
createDocumentMerger(Document doc)
Create a DocumentMerger object given a
Document object. |
DocumentSerializer |
createDocumentSerializer(Document doc)
Returns an instance of DocumentSerializerImpl ,
which is an implementation of DocumentSerializer
interface. |
Methods inherited from class org.openoffice.xmerge.converter.xml.sxc.SxcPluginFactory |
createOfficeDocument, createOfficeDocument |
Methods inherited from class org.openoffice.xmerge.PluginFactory |
getConverterInfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PluginFactoryImpl(ConverterInfo ci)
Method Detail |
public Document createDeviceDocument(java.lang.String name, java.io.InputStream is) throws java.io.IOException
PluginFactory
Create a Document
object that corresponds to
the device 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.
createDeviceDocument
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 DocumentDeserializer createDocumentDeserializer(ConvertData cd)
DocumentDeserializerImpl
,
which is an implementation of DocumentDeserializer
interface.createDocumentDeserializer
in interface DocumentDeserializerFactory
cd
- ConvertData
object for reading data
which will be converted back to a
Document
object.DocumentDeserializerImpl
object.public DocumentMerger createDocumentMerger(Document doc)
DocumentMergerFactory
Create a DocumentMerger
object given a
Document
object.
org.openoffice.xmerge.DocumentMergerFactory
doc
- Document
object that the created
DocumentMerger
object uses as a base
Document
for merging changes into.DocumentMerger
object or null if none
exists.public DocumentSerializer createDocumentSerializer(Document doc)
DocumentSerializerImpl
,
which is an implementation of DocumentSerializer
interface.createDocumentSerializer
in interface DocumentSerializerFactory
doc
- Document
object to be
converted/serialized.DocumentSerializerImpl
object.
|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |