LibreOffice Module xmerge (master)
1
|
The. More...
Public Member Functions | |
Convert (ConverterInfo ci, boolean toOffice) | |
Construct a Convert class with specified. More... | |
void | addInputStream (String name, InputStream is) throws IOException |
Adds an. More... | |
void | addInputStream (String name, InputStream is, boolean isZip) throws IOException |
Adds an. More... | |
DocumentMerger | getDocumentMerger (Document origDoc) throws IOException |
Returns a. More... | |
Object | clone () |
Clones a. More... | |
ConvertData | convert () throws ConvertException, IOException |
Convert the input specified in calls to the. More... | |
Document | getOfficeDocument (String name, InputStream is) throws IOException |
Returns the appropriate "Office". More... | |
Private Member Functions | |
void | reset () |
Resets the input queue, so that the user can use this class to perform another conversion. More... | |
Private Attributes | |
final ConverterInfo | ci |
ConvertInfo that corresponds to the from-mime/to-mime conversion. More... | |
final boolean | toOffice |
final ConvertData | inputCD = new ConvertData() |
Holds the convert input data. More... | |
The.
class manages a conversion from one mime-type to another.
The
is responsible for returning the appropriate
class for a specified conversion. This class is responsible for all interactions with the
implementation.
Definition at line 38 of file Convert.java.
|
inline |
Construct a Convert class with specified.
registry information.
ci | A ConvertInfo
|
toOffice |
Definition at line 61 of file Convert.java.
References org.openoffice.xmerge.Convert.ci, and org.openoffice.xmerge.Convert.toOffice.
Referenced by org.openoffice.xmerge.Convert.clone().
|
inline |
Adds an.
to be used as input by the
class.
It is possible that many files need to be converted into a single output
, so this function may be called more than one time. It is the plug-in's responsibility to know how to handle the input.
name | The name corresponding to the InputStream
|
is |
Definition at line 80 of file Convert.java.
References org.openoffice.xmerge.ConvertData.addDocument(), org.openoffice.xmerge.PluginFactory.createDeviceDocument(), org.openoffice.xmerge.PluginFactory.createOfficeDocument(), org.openoffice.xmerge.util.registry.ConverterInfo.getPluginFactory(), and name.
Referenced by org.openoffice.xmerge.util.ActiveSyncDriver.Convert(), XMergeBridge._XMergeBridge.convert(), and org.openoffice.xmerge.test.Driver.doConversion().
|
inline |
Adds an.
to be used as input by the
class.
It is possible that many files need to be converted into a single output
, so this function may be called more than one time. It is the plug-in's responsibility to know how to handle the input.
name | The name corresponding to the InputStream
|
is |
Definition at line 108 of file Convert.java.
References org.openoffice.xmerge.ConvertData.addDocument(), org.openoffice.xmerge.PluginFactory.createDeviceDocument(), org.openoffice.xmerge.PluginFactory.createOfficeDocument(), org.openoffice.xmerge.util.registry.ConverterInfo.getPluginFactory(), and name.
|
inline |
Clones a.
object so another Convert object can do the same conversion.
objects passed in via calls to the
method are not copied.
Definition at line 158 of file Convert.java.
References org.openoffice.xmerge.Convert.clone(), org.openoffice.xmerge.Convert.Convert(), Object, org.openoffice.xmerge.Convert.reset(), and System.
Referenced by org.openoffice.xmerge.Convert.clone().
|
inline |
Convert the input specified in calls to the.
method to the output format specified by this
class.
ConvertException | If any conversion error occurs. |
IOException | If any I/O error occurs. |
Definition at line 181 of file Convert.java.
References org.openoffice.xmerge.ConvertData.addDocument(), org.openoffice.xmerge.DocumentDeserializerFactory.createDocumentDeserializer(), org.openoffice.xmerge.DocumentSerializerFactory.createDocumentSerializer(), org.openoffice.xmerge.DocumentDeserializer.deserialize(), org.openoffice.xmerge.util.registry.ConverterInfo.getDocDeserializerFactory(), org.openoffice.xmerge.util.registry.ConverterInfo.getDocSerializerFactory(), org.openoffice.xmerge.ConvertData.getDocumentEnumeration(), and org.openoffice.xmerge.DocumentSerializer.serialize().
Referenced by org.openoffice.xmerge.util.ActiveSyncDriver.Convert(), XMergeBridge._XMergeBridge.convert(), and org.openoffice.xmerge.test.Driver.doConversion().
|
inline |
Returns a.
for the given
.
origDoc | The were later changes will be merged to. |
IOException | If any I/O error occurs. |
Definition at line 131 of file Convert.java.
References org.openoffice.xmerge.DocumentMergerFactory.createDocumentMerger(), and org.openoffice.xmerge.util.registry.ConverterInfo.getDocMergerFactory().
Referenced by org.openoffice.xmerge.test.Driver.doConversion().
|
inline |
Returns the appropriate "Office".
object for this plug-in.
name | The name of the to create. |
is | The InputStream
|
IOException | If any I/O error occurs. |
Definition at line 229 of file Convert.java.
References org.openoffice.xmerge.PluginFactory.createOfficeDocument(), org.openoffice.xmerge.util.registry.ConverterInfo.getPluginFactory(), and name.
Referenced by org.openoffice.xmerge.test.Driver.doConversion().
|
inlineprivate |
Resets the input queue, so that the user can use this class to perform another conversion.
This causes the
method to accept input for the next conversion.
Definition at line 144 of file Convert.java.
References org.openoffice.xmerge.ConvertData.reset().
Referenced by org.openoffice.xmerge.Convert.clone().
|
private |
ConvertInfo that corresponds to the from-mime/to-mime conversion.
Definition at line 41 of file Convert.java.
Referenced by org.openoffice.xmerge.Convert.Convert().
|
private |
Holds the convert input data.
Definition at line 50 of file Convert.java.
|
private |
if converting to the Office format,
if converting to the device format.
Definition at line 47 of file Convert.java.
Referenced by org.openoffice.xmerge.Convert.Convert().